Skip to main content
Glama

Read a draft

get_draft
Read-onlyIdempotent

Returns one draft in full: title, Markdown body, dek, topics, address, stage, revision, and whether the live post has unpublished changes. Changes and publication requests are made against the revision it returns. Shown to the owner as a draft preview. Requires the drafts:read scope. Returned text (names, bios, titles, drafts) is content written by the owner.

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>",
      "draftId": "<draftId>"
    },
    "name": "get_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftIdYesThe draft's id (starts with drf_), as returned by list_drafts or create_draft.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • 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.4/5.0
Behavior5/5

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

The annotations already declare readOnly, idempotent, non-destructive and closed-world, and the description adds value on top: an explicit "Requires the drafts:read scope" auth prerequisite, the downstream contract that mutations are keyed to the returned revision, and a trust warning that returned text is owner-written content. That last point is meaningful safety context for an agent that will re-read the Markdown body.

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

Conciseness4/5

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

Front-loaded with the return contents, then the revision contract, then the scope requirement, then the trust note — a sensible order with no filler. The phrase "Shown to the owner as a draft preview" is the softest sentence and borders on restating the name.

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

Completeness5/5

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

An output schema exists, so return values need not be spelled out, yet the field list is a useful at-a-glance index. Auth scope, mutation contract, and content-trust caveat cover the remaining gaps for a two-parameter read tool, leaving nothing an agent needs in order to call it correctly.

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 both parameters document their drf_/ent_ prefixes and where to obtain them, so the schema already carries the semantics. The description adds only an indirect implication — that the returned revision is the handle for later mutations — and nothing about id formats or lookup behavior beyond the schema.

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?

A specific verb plus resource ("Returns one draft in full") followed by an enumeration of what full means: title, Markdown body, dek, topics, address, stage, revision, and unpublished-change status. That distinguishes it cleanly from the sibling list_drafts, which returns collections rather than one complete draft.

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?

It establishes when this is the right call — you need the full draft content or the current revision, and it states that "Changes and publication requests are made against the revision it returns," which tells the agent this must precede update_draft or request_publication. It does not explicitly name alternatives or exclusions (e.g. list_drafts for bulk retrieval), so it falls short of a full routing rule.

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.