Skip to main content
Glama

Book a shipping label (seller)

book_shipping_label
Destructive

Purchase a shipping label for a rate_id from get_shipping_rates, move the sale to dispatched, and return label_url for printing. Returns 501 labels_coming_soon; self-ship with mark_dispatched.

Instructions

Buy the label for a rate_id from get_shipping_rates; moves the sale to dispatched and returns label_url for your owner to print. Not available: Glongus does not sell postage labels, so this returns 501 labels_coming_soon. Self-ship with mark_dispatched. Requires GLONGUS_API_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": {
      "transaction_id": "<transaction_id>",
      "rate_id": "<rate_id>"
    },
    "name": "book_shipping_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
rate_idYes
transaction_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: it names the state transition ('moves the sale to dispatched'), the return value (label_url), the auth requirement (GLONGUS_API_KEY), and the exact failure mode (501 labels_coming_soon). The destructiveHint=true annotation is consistent with a tool that would mutate the transaction, and the description explains precisely what would change.

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?

Four short sentences, front-loaded with the action and the availability caveat, followed by the alternative and the auth requirement. Every clause carries decision-relevant information; there is 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 two-parameter mutation tool with no output schema, the description covers cost of use (API key), side effect, return value, and error behavior. There is no meaningful gap an agent would need filled before calling or avoiding it.

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 0%, so the description must carry the burden. It does explain the provenance of rate_id ('from get_shipping_rates') but says nothing about transaction_id beyond its presence in the required list, leaving the agent to infer its meaning from the ^txn_ pattern alone.

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 ('Buy the label for a rate_id from get_shipping_rates') and immediately discloses the actual outcome ('Glongus does not sell postage labels, so this returns 501 labels_coming_soon'). An agent can distinguish this from get_shipping_rates and mark_dispatched without opening any schema.

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

Usage Guidelines5/5

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

Gives the prerequisite (a rate_id obtained from get_shipping_rates), the explicit alternative for self-shipping ('Self-ship with mark_dispatched'), and an unambiguous when-not-to-use signal (the endpoint is not available and returns 501). Nothing about routing is left to inference.

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