Skip to main content
Glama

Create a draft

create_draft

Creates a new draft in an Entry's Writing from the text given: an article, post or note, with a Markdown body (## headings, lists, > quotes, code blocks; a block opened withprompt is a prompt for the reader to copy; a line of its own such as description is an embed card, and description is a picture already added to the draft). Every field is optional, and each field's limit is stated in its schema. The draft stays private until the owner publishes it. Shown to the owner as a draft preview. Requires the drafts:write scope. Publishing, unpublishing and changes to the live profile are made only by the owner, in Entry.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "entryId": "<entryId>"
    },
    "name": "create_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
dekNoA one-line standfirst under the title. At most 280 characters.
bodyNoThe text, as Markdown: ## headings, - and 1. lists, > quotes, *em*, **strong**, `code`, [links](https://...), [^1] notes and ``` code blocks with an optional language. A block opened with ```prompt is a prompt: shown labelled, with a Copy button, for the reader to paste into an assistant. A picture or an embed is one line of its own: ![description](target "optional caption"). The target is image:<key> for a picture added to this draft with the add-image call (POST /v1/me/entries/{entryId}/drafts/{draftId}/images, or the add_draft_image tool, which answers the key and this line), or just an https address: an X post (x.com/<handle>/status/<id>), a GitHub repository (github.com/<owner>/<repo>), a YouTube or Vimeo video, or a link to a video file ending .mp4, .m4v, .webm or .mov, which becomes a card or a video. An embed line needs only the address (![](https://github.com/vercel/next.js)); Entry reads the card itself. The description is the alt text. A post holds at most 3 pictures on the Free plan and 30 on Pro, and at most 20 embeds and videos together; a picture key that is not this draft's is refused. At most 60,000 characters.
titleNoThe draft's title, on one line. Leave it out for a note without a title. At most 80 characters.
topicsNoTopics, as short words: at most 3 topics, each at most 32 characters.
entryIdYesThe Entry's id (starts with ent_), as returned by list_entries.

Output Schema

NameRequiredDescriptionDefault
codeNoOnly when the call failed (isError): the error code, e.g. conflict, forbidden, not_found, validation_failed, rate_limited.
draftNo
detailsNoOnly when the call failed: conflict has revision, forbidden has requiredScope, rate_limited has retryAfter (seconds), validation_failed has problems; a refused page bundle has errors (code, path, detail, fix for each) and a stale page revision has revision.
messageNoOnly when the call failed: what went wrong and what to do.
problemsNoFields that were refused when the others were applied: { field: reason }.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / body / description
      Previous value: -"The text, as Markdown: ## headings, - and 1. lists, > quotes, *em*, **strong**, `code`, [links](https://...), [^1] notes and ``` code blocks with an optional language. A block opened with ```prompt is a prompt: shown labelled, with a Copy button, for the reader to paste into an assistant. At most 60,000 characters."New value: +"The text, as Markdown: ## headings, - and 1. lists, > quotes, *em*, **strong**, `code`, [links](https://...), [^1] notes and ``` code blocks with an optional language. A block opened with ```prompt is a prompt: shown labelled, with a Copy button, for the reader to paste into an assistant. A picture or an embed is one line of its own: ![description](target \"optional caption\"). The target is image:<key> for a picture added to this draft with the add-image call (POST /v1/me/entries/{entryId}/drafts/{draftId}/images, or the add_draft_image tool, which answers the key and this line), or just an https address: an X post (x.com/<handle>/status/<id>), a GitHub repository (github.com/<owner>/<repo>), a YouTube or Vimeo video, or a link to a video file ending .mp4, .m4v, .webm or .mov, which becomes a card or a video. An embed line needs only the address (![](https://github.com/vercel/next.js)); Entry reads the card itself. The description is the alt text. A post holds at most 3 pictures on the Free plan and 30 on Pro, and at most 20 embeds and videos together; a picture key that is not this draft's is refused. At most 60,000 characters."
    • changedOutput schema / properties / draft / properties / body / description
      Previous value: -"The text, as Markdown: ## headings, - and 1. lists, > quotes, *em*, **strong**, `code`, [links](https://...), [^1] notes and ``` code blocks with an optional language. A block opened with ```prompt is a prompt: shown labelled, with a Copy button, for the reader to paste into an assistant."New value: +"The text, as Markdown: ## headings, - and 1. lists, > quotes, *em*, **strong**, `code`, [links](https://...), [^1] notes and ``` code blocks with an optional language. A block opened with ```prompt is a prompt: shown labelled, with a Copy button, for the reader to paste into an assistant. A picture or an embed is one line of its own: ![description](target \"optional caption\"). The target is image:<key> for a picture added to this draft with the add-image call (POST /v1/me/entries/{entryId}/drafts/{draftId}/images, or the add_draft_image tool, which answers the key and this line), or just an https address: an X post (x.com/<handle>/status/<id>), a GitHub repository (github.com/<owner>/<repo>), a YouTube or Vimeo video, or a link to a video file ending .mp4, .m4v, .webm or .mov, which becomes a card or a video. An embed line needs only the address (![](https://github.com/vercel/next.js)); Entry reads the card itself. The description is the alt text. A post holds at most 3 pictures on the Free plan and 30 on Pro, and at most 20 embeds and videos together; a picture key that is not this draft's is refused."
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare the generic write/non-destructive/non-idempotent profile; the description adds material behavior an agent cannot infer: the auth scope required, that the draft is private and only visible to the owner as a preview, that publishing is out of scope, and concrete validation rules (3 pictures on Free/30 on Pro, 20 embeds max, foreign picture keys refused). This is substantial disclosure beyond the structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, but the sentence then sprawls through a long parenthetical duplicating the body schema's Markdown rules. The redundant format detail buries the genuinely useful parts (privacy, scope, publishing boundary) that follow.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter creation tool with an output schema and full annotation coverage, the description covers permissions, privacy state, publishing boundary, field limits and validation. The remaining gap is routing guidance between this tool and update_draft/add_draft_image for post-creation edits.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the schema already documents every field in depth, including the full Markdown grammar and embed syntax. The description's parenthetical about headings, lists, quotes, ```prompt blocks and embed cards largely restates the body schema rather than adding new meaning, so the baseline of 3 is right.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Creates a new draft in an Entry's Writing') plus the accepted content types (article, post or note) and the source of the content ('from the text given'). Sibling tools like update_draft, get_draft and add_draft_image are clearly distinct from a creation operation, and the definition leaves no ambiguity about that.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real operating context: requires the drafts:write scope, the draft stays private until the owner publishes, and publishing/unpublishing/live-profile changes happen only in Entry, which tells the agent this tool will not publish. It does not explicitly say when to prefer update_draft for existing drafts or add_draft_image for pictures, though the body parameter references the latter.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.