Skip to main content
Glama

Find purchase order by ID.

get_order_by_id

Retrieve a single order by its integer ID to look up order details. Pass IDs of 5 or below, or above 10, to avoid exceptions.

Instructions

For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.

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": {
      "orderId": "<orderId>"
    },
    "name": "get_order_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.5/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose one behavioral trait beyond the schema — that out-of-range values throw exceptions — but omits whether this is read-only, what an order object contains, what happens for a valid-but-nonexistent ID, and whether the 'valid range' is a test-environment quirk. A retrieval tool with zero annotation coverage needs more than an error caveat.

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

Conciseness3/5

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

One short sentence with no padding, so nothing is wasteful. But the brevity comes from under-specification rather than economy — the single sentence is entirely an input caveat, leaving the core operation unstated in an otherwise appropriately sized slot.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter lookup with no annotations and no output schema, the description should at minimum say what is returned and how failures other than range errors present. It covers only one narrow failure mode, leaving the return value entirely unspecified since no output schema exists to compensate.

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% and the single parameter orderId is typed int64 with no further documentation, so the description's valid-domain rule (<= 5 or > 10) is the only semantic information available and is useful. That said, it explains neither what an order ID identifies nor how to obtain a valid one, so it only partially compensates for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never states what the tool does — no verb, no resource, no statement that it retrieves an order. Only the title ('Find purchase order by ID') conveys purpose, and the description body is purely a constraint on input values, so an agent reading the description alone learns nothing about the operation.

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?

It supplies a concrete condition for valid invocation (integer IDs <= 5 or > 10) and warns that other values raise exceptions, which is genuinely actionable guidance. However, it says nothing about when to prefer this over siblings such as delete_order or the pet/user lookups, and no exclusions or alternatives are named.

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