Skip to main content
Glama

get_draft

Read-only

Read-only; changes nothing. The site's draft (key scope deploy:write): draft_version (pass it as expected_draft_version to write_files; 0 means no draft yet), the files (path, sha256, size; up to 500), the pictures waiting to be adopted (candidates, from request_upload), blobs_missing (files whose bytes did not arrive — write them again), published_version (the draft version that is live; smaller than draft_version means unpublished changes), live_deploy_id (pass it as expected_live_deploy to publish_draft; null when nothing is published), last_publish (the last publish operation), and versions (the last 20 draft versions: restore_draft's from_version). Call it before the first write_files of a conversation and after any 409.

Input Schema

NameRequiredDescriptionDefault
siteYesSite ID (the id from list_sites, e.g. "my-shop")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnlyHint/destructiveHint annotations, the description adds important behavioral context: the tool requires deploy:write scope, reports up to 500 files, interprets blobs_missing as files whose bytes did not arrive, distinguishes draft_version from published_version, and explains the null case for live_deploy_id. It also connects the 409 case to re-reading the draft, which is valuable operational guidance.

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?

The description is dense but front-loads the key fact ('Read-only; changes nothing') and then provides a structured enumeration of return fields and usage hooks. The length is justified because there is no output schema, though the single long parenthetical list makes it less scannable than it could be.

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 read-only inspection tool with no output schema, the description is complete: it explains the return fields, their meanings, version relation semantics, missing-blob handling, publish-related identifiers, and when to call the tool. An agent has enough information to invoke get_draft correctly and interpret its results without additional documentation.

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?

There is only one parameter, site, and the schema description already explains it fully as the site ID from list_sites. The description refers to 'the site's draft' but does not add any meaning beyond the schema's parameter documentation, so the baseline of 3 is appropriate for 100% schema coverage.

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?

The description clearly states that this tool reads the site's draft and precisely enumerates what the draft response includes: draft_version, files, upload candidates, missing blobs, published_version, live_deploy_id, last_publish, and versions. This is far more specific than a generic 'get draft' and lets an agent distinguish this tool from siblings such as read_draft_file, preview_draft, and list_versions.

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?

The description gives explicit invocation conditions: call it before the first write_files of a conversation and after any 409. It also explains how the returned values are used by write_files, publish_draft, and restore_draft, which helps an agent understand the tool's place in the workflow, though it does not explicitly state when to prefer alternatives like preview_draft or read_draft_file.

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.

Resources