Skip to main content
Glama

book_shipment

Destructive

Book a courier shipment after checking the order ID for duplicates and requiring explicit confirmation before finalizing.

Instructions

Book a shipment. Check the order ID for duplicates first and obtain explicit user confirmation before setting confirm=true.

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": {
      "packet": "<packet>"
    },
    "name": "book_shipment"
  }
}

Input Schema

NameRequiredDescriptionDefault
packetYes
confirmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true, so the risk profile is known. The description adds the genuinely useful confirmation gate tied to confirm=true, but says nothing about what happens on a duplicate order ID, whether the booking is reversible, or what is returned on success.

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?

Two short sentences, zero filler, with the action stated first and the two safety preconditions immediately after. Every clause carries operational weight.

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?

For a destructive, open-world booking call with a ~25-field nested payload and no output schema, the description covers the confirmation workflow but omits outcome information (shipment/consignment IDs, failure modes on duplicate order IDs) that an agent would need to report back. It is adequate to avoid the worst mistake but not complete.

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?

The description clarifies the semantics of the otherwise opaque boolean confirm (only true after explicit user consent) and points at booked_packet_order_id as the duplicate-check key, which the schema does not state. However, the large nested Packet object (dimensions, cities, consignment contacts, COD amount) is left almost entirely undescribed, and schema description coverage is near zero, so compensation is only partial.

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?

"Book a shipment" is a specific verb plus resource, so the agent immediately knows this creates a booking rather than querying one. It does not explicitly contrast itself with the sibling batch_book_shipments, though the singular/plural naming makes the distinction fairly safe to infer.

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?

It supplies two concrete preconditions before invocation: deduplicate against the order ID and get explicit user confirmation before setting confirm=true. What it lacks is routing guidance against alternatives (e.g., when to use batch_book_shipments instead, or whether a tariff_quote should precede a booking).

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