Skip to main content
Glama

Find purchase order by ID.

get_order_by_id
Read-onlyIdempotent

Retrieve order details by ID. Use IDs 5 or less, or greater than 10, for valid responses; other values generate exceptions.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderIdYesID of order that needs to be fetched
Behavior4/5

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

Annotations declare readOnlyHint and idempotentHint, indicating safe read. The description adds specific behavioral detail: certain IDs (6-10) cause exceptions. This is useful for correct invocation and surpasses what annotations alone provide.

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?

The description is a single sentence, which is concise, but it lacks structure and fails to mention the primary function. It is too terse and missing essential information.

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?

Despite having annotations and a schema, the description omits the core action (fetching an order). It only covers an edge case, leaving the tool's purpose incomplete.

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?

Input schema has full coverage (100%) for the single parameter 'orderId', with clear description. The description adds no further parameter semantics, so baseline 3 is appropriate.

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 does not state that the tool retrieves an order by ID; it only provides constraints on ID values that avoid exceptions. The title gives some context, but the description itself is vague.

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?

No guidance on when to use this tool versus siblings like get_pet_by_id or get_user_by_name. The description only mentions ID behavior, not usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mroops0111/openapi-mcp-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server