Skip to main content
Glama

Preview a saved draft

preview_draft

Validates a saved draft revision, stores thread parts, account bindings and image fingerprints, and returns a Preview ID without publishing or uploading. Invalid content stays Draft with errors.

Instructions

Validate a saved revision and persist its exact thread parts, account bindings and image fingerprints. Returns status Preview and a preview ID. Does not publish or upload. Invalid content remains Draft with errors.

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": {
      "draftId": "<draftId>",
      "expectedRevision": "<expectedRevision>"
    },
    "name": "preview_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftIdYes
expectedRevisionYes

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

With annotations already flagging a non-readonly, non-destructive, non-idempotent, open-world call, the description adds real value: it discloses persisted side effects (thread parts, account bindings, image fingerprints) and the failure mode (invalid content stays Draft with errors). It omits any mention of optimistic-concurrency behavior despite the expectedRevision parameter, which matters for a non-idempotent mutation.

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 short sentences, front-loaded with the action, followed by return value, exclusion, and failure behavior. The middle sentence is dense ('thread parts, account bindings and image fingerprints') but every sentence contributes distinct information.

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

Completeness3/5

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

The output schema covers the return contract, so omitting return details is fine, and side effects plus failure behavior are described. However, for a required two-parameter mutating tool with zero schema descriptions, the missing explanation of expectedRevision and the concurrency/error path leaves a real gap.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must carry parameter meaning, and it does not: neither draftId nor expectedRevision is explained. In particular, expectedRevision's role as a concurrency guard and what happens on mismatch is left entirely unstated, even though it is a required parameter with an exclusive minimum.

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?

States a specific verb and resource: validates a saved revision, persists thread parts, account bindings and image fingerprints, and returns a Preview status with a preview ID. The phrase 'Does not publish or upload' separates it from publish_draft, though no sibling is named outright.

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

Usage Guidelines3/5

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

Usage is implied by 'Validate a saved revision' plus the exclusion of publishing/uploading, so an agent can infer this is the pre-publish check step. There is no explicit statement of when to prefer preview_post or publish_draft, nor prerequisites beyond having a saved draft.

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