Skip to main content
Glama

shipments_by_order_id

Read-onlyIdempotent

Find existing consignments by merchant order IDs to check shipment status before booking or verify records after uncertain writes.

Instructions

Find existing consignments by merchant order IDs; use before booking or after uncertain writes.

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": {
      "order_ids": "<order_ids>"
    },
    "name": "shipments_by_order_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idsYes

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 readOnly, idempotent, non-destructive and openWorld, and the phrase 'after uncertain writes' usefully signals read-back/verification semantics. However it says nothing about behavior on unknown order IDs (skip vs. error), partial results, or the 50-ID batch ceiling, which are the traits an agent would still need to know.

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?

A single front-loaded sentence with the action first and the call-timing cue second. Nothing is wasted and nothing is buried.

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 simple one-parameter lookup this is close to adequate, but with no output schema the description never indicates what comes back (consignment objects, list vs. map, or what happens for unmatched IDs), leaving the agent to discover the return shape empirically.

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 0%, so the description carries real weight by specifying these are MERCHANT order IDs (not internal shipment IDs) — a meaningful disambiguation the schema does not make. It adds no detail on batch size, per-ID length, or ordering/response alignment, so the gap is only partly closed.

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?

Specific verb+resource: 'Find existing consignments by merchant order IDs' tells the agent exactly what is looked up and by which key. It is clearly distinguishable from booking/tracking siblings even though none are named, since it is a lookup rather than a mutation or listing tool.

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?

Gives two concrete call conditions: 'before booking' (dedup/pre-check) and 'after uncertain writes' (verify a possibly-committed booking). No explicit when-not or named alternative such as batch_book_shipments, which keeps it short of a 5.

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