Skip to main content
Glama

Draft Orders Get

tiendanube_draft_orders_get
Read-onlyIdempotent

Fetches a Tiendanube draft order by ID to review or process an incomplete sale, with optional field selection and JSON or markdown output.

Instructions

Get a draft order. HTTP: GET /draft_orders/{id} Required scope: read_draft_orders API version: 2025-03

Input Schema

NameRequiredDescriptionDefault
idYesDraft order ID
fieldsNoComma-separated list of fields to return, to reduce payload size (e.g. 'id,name,variants')
response_formatNoOutput format: 'json' (default, full data) or 'markdown' (human-readable)json

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is fully covered. The description adds genuinely useful operational context — the required scope 'read_draft_orders' and the pinned API version 2025-03 — but says nothing about response shape, pagination, or error behavior.

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 lines with the action front-loaded, followed by the HTTP route, scope, and API version. Nothing is padded, though the HTTP route largely restates what the tool name already implies.

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?

With no output schema, the description could note what a draft order object contains or that `fields` trims the payload, which matters for an agent deciding how to call it. As written it covers access requirements adequately but leaves the return-value picture to inference.

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 three parameters (id, fields, response_format) are already documented with examples and an enum. The description adds no parameter-level detail beyond the path template, 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?

States a specific verb and resource ("Get a draft order"), which distinguishes it from the sibling list/create/update/delete/confirm draft-order tools by the verb alone. It stops short of explicitly naming an alternative, but the operation is unambiguous.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus tiendanube_draft_orders_list, tiendanube_orders_get, or tiendanube_draft_orders_confirm. The only conditional information is the required scope line, which is an auth precondition rather than usage guidance.

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

Deploy Server

Other Tools