Skip to main content
Glama

get_order_draft

Read one of your order drafts by id: its status (pending, consumed, expired or void), the frozen lines and totals from its snapshot, and the placed order's id once the draft is consumed. Requires an orders:read or orders:write key.

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": {
      "draft_id": "<draft_id>"
    },
    "name": "get_order_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idYesThe draft id, from `create_order_draft`.

Output Schema

NameRequiredDescriptionDefault
linesYesThe draft's lines, from its snapshot.
statusYes`pending`, `consumed`, `expired` or `void`.
draft_idYesThe draft's id.
order_idYesThe placed order's id, once the draft is consumed.
total_yenYesGrand total in yen.
expires_atYesWhen the approval window closes, RFC 3339.
approval_urlYesThe browser approval URL (create answer only).
shipping_yenYesShipping fee in yen.
subtotal_yenYesSum of line totals in yen.

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?

With no annotations, the description carries the full burden and does a fair job: 'Read' signals a non-mutating lookup, the status vocabulary (pending/consumed/expired/void) and the snapshot semantics tell the agent what state a draft can be in, and the required key scopes (orders:read or orders:write) are disclosed. It stops short of stating failure behavior for a missing, expired or void draft, which matters for a read-by-id call.

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

Conciseness5/5

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

One sentence, front-loaded with the action and resource, followed by the returned fields and the auth requirement. No filler and nothing buried.

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 single-parameter read with an output schema and no annotations, this is nearly complete: it covers the returned shape, the status domain, and auth scope. The remaining gap is error semantics (draft not found, expired/void behavior), which an agent would want before calling.

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 coverage is 100% and the sole parameter is documented in the schema as the draft id from `create_order_draft`; the description adds only the phrase 'by id'. Baseline 3 is appropriate — the schema does the work.

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 ('Read one of your order drafts by id') and then enumerates exactly what is returned: status, frozen snapshot lines/totals, and the resulting order id. The enumerated draft statuses (pending, consumed, expired, void) make it distinguishable from the sibling get_order_status at a glance.

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 only implied: the reader must infer this is the lookup step after `create_order_draft` and after consumption. No explicit when-to-use / when-not statement and no naming of the sibling get_order_status as the alternative for placed orders.

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