Skip to main content
Glama

Fetch order

fetch_order
Read-onlyIdempotent

Retrieves a single Razorpay order by its ID for read-only lookup and reconciliation; amounts stay in minor units (paise for INR).

Instructions

Retrieve one Razorpay order by id. Read-only Razorpay API call. Amounts remain in minor units (paise for INR).

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_id": "<order_id>"
    },
    "name": "fetch_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
expandNoOptional Razorpay expand[] flags.
order_idYesOrder id, e.g. order_...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered and the sentence "Read-only Razorpay API call" largely restates it. What the description does add beyond structured data is the monetary unit convention (amounts stay in minor units, paise for INR), which prevents a real misinterpretation of returned values. It omits error behavior for invalid ids and any rate-limit context.

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?

Three short sentences, with purpose front-loaded and the two supporting facts (read-only, minor units) trailing. No filler, and the unit caveat is one clause long rather than a paragraph.

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

Completeness4/5

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

For a two-parameter read tool with full schema coverage and rich annotations, the definition covers what is needed to invoke it correctly. With no output schema present, a brief note on the shape of a returned order (status, amount fields) would round it out, but that is a modest gap rather than a blocking one.

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 100%: order_id carries a pattern and order_... example, and expand carries its enum values and a description. The description adds nothing about the expand flags or what each expansion toggles, so the schema does the heavy lifting and baseline 3 applies.

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?

"Retrieve one Razorpay order by id" gives a specific verb (retrieve), a specific resource (Razorpay order), and an explicit cardinality (one, by id), which implicitly separates it from the fetch_all_orders sibling. It stops short of naming any sibling outright, so the differentiation is inferred from scope wording rather than stated.

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?

Usage is only implied: use this when you already have a single order_id. There is no explicit when-not guidance, no pointer to fetch_all_orders for listing or to fetch_order_payments for the child collection, and no stated prerequisite about which id namespace applies beyond the regex in the schema.

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