Content
generate_draft
Start drafting a content opportunity. Spends one monthly content credit: set confirm_credit=true only after the user agrees. Reuse the same idempotency_key when retrying so a retry cannot spend twice. Read the result later with get_draft.
- Plan
- Track and above
- Rate cost
- 1 unit
Try asking
“Draft the comparison page — yes, spend a credit.”
Assistants should ask the person first: this is the one tool that spends money. It is annotated as not read-only and not idempotent, so a well-behaved client will prompt for confirmation before calling it.
Reviewed by Garvit Sharma, Co-founder, on 4 November 2026. This tool is included from the Track plan, ₹6,999 a month in INR before 18% GST. Calls follow the Model Context Protocol tools specification and JSON-RPC 2.0.
Which arguments does it take?
Passed as the tool call's arguments.
project_idstringrequiredThe project to read, from list_projects.
asset_idstringrequiredThe content opportunity, from list_content_assets.
idempotency_keystringrequiredYour own key, 1–128 characters. Reuse it on retries.
confirm_creditbooleandefault falseSend true to proceed. Left out, nothing is spent and the tool answers confirmation_required.
What does it return?
The same object as Generate a draft, returned as structured output.
asset_idstringThe content opportunity being drafted.
generation_versionintegerWhich draft this is for the opportunity, counting from 1.
statusstringpending on a new request. A replayed idempotency_key returns the original generation's current status. refunded is a failure whose credit was returned.
Values:pendingsucceededfailedrefunded
credit_consumedbooleanWhether this generation spent a content credit.
Which errors can it return?
| 403 write_not_allowed | The key or connection is read-only, or it belongs to a viewer. Writes need a read-and-write key or connection, from a member who can edit. |
| 422 confirmation_required | A draft spends a content credit, and the call didn't confirm it with `confirm_credit: true`. |
| 402 credits_exhausted | This month's content credits are used up. Retrying won't help until the credits reset on the 1st (UTC). |
| 402 payment_required | The plan doesn't include this capability for the project, or the workspace has reached its daily usage limit. Drafting a content opportunity is the call that can return it. |
| 409 conflict | The item isn't in a state that allows the change — for example marking an opportunity published before it has a draft, or drafting one that is already being drafted. |
| 404 not_found | The project or item doesn't exist in this workspace. A project from another workspace also returns 404, never 403. |
| 422 invalid_request | A parameter or body field is missing or has the wrong type or value. The message names the field. Also returned when a write would pass the plan's prompt limit. |
| 401 unauthorized | No key was sent, or the key is unknown, revoked or expired, or the member who created it has left the workspace or been deactivated. |
| 402 plan_required | The workspace's plan doesn't include API access. It's included on every plan from Track up — Solo is the one without it. |
| 403 workspace_not_approved | The workspace is still waiting for approval, or wasn't approved. |
| 429 rate_limited | Too many requests this minute. Wait for the number of seconds in the `Retry-After` header, then retry. |
Every code, and what to retry, is in Errors.
Failures arrive as a tool error — isError: true with code: message as text. See Using the tools.