Skip to main content
Glama

List drafts

list_drafts
Read-onlyIdempotent

Lists an Entry's writing, newest first, as summaries: id, title, stage, excerpt, word count and revision. state "working" (the default) lists drafts in progress, the owner's unfinished writing; "published" lists posts that are live. When there are more, nextCursor is returned for the next page. 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>"
    },
    "name": "list_drafts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many to return (1 to 50).
stateNo"working" for drafts in progress, "published" for live posts.working
cursorNonextCursor from the previous page.
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.
draftsNo
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.
nextCursorNoPass as cursor to get the next page; null on the last.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world behavior, yet the description adds two genuinely useful facts beyond them: the drafts:read scope requirement and the untrusted-content warning that returned text is owner-written. It does not describe rate limits or ordering stability across pages, which keeps it below a 5.

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?

Four sentences, front-loaded with the core behavior and return shape, then state options, pagination, auth and the safety note in descending priority. Dense but every clause carries information; no filler.

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?

For a paginated read tool with a full schema and an output schema, the description supplies everything an agent needs: what is returned, how ordering works, how to page, which scope is required, and a caution about untrusted content. Since an output schema exists, it need not detail exact response fields.

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%, so all four parameters are already documented with defaults, ranges and the nextCursor pattern. The description restates the meaning of state and nextCursor but adds no syntax or behavioral detail the schema lacks, so the baseline of 3 applies.

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

Purpose4/5

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

The description states a specific verb and resource ('Lists an Entry's writing') plus the ordering ('newest first') and the shape of each item ('summaries: id, title, stage, excerpt, word count and revision'). 'As summaries' implicitly separates it from the full-content sibling get_draft, but no sibling is named explicitly, so the differentiation is inferred rather than stated.

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 gives clear conditions for the state parameter: 'working' (default) for drafts in progress versus 'published' for live posts, and explains that nextCursor should be followed for further pages. It stops short of explicit routing guidance such as telling the agent to use get_draft when the full body is needed.

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.