Skip to main content
Glama
mcp-server-razorpay

mcp-server-razorpay

by bugmagnet28

Fetch Order

fetch_order

Retrieve a Razorpay order by ID to check its details, status, and payment information for order verification.

Instructions

Fetch details of a specific Razorpay order by order ID.

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
order_idYesRazorpay Order ID (e.g. order_xxxxxx)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It implies a read-only lookup but does not disclose error behavior for invalid/missing order IDs, authentication requirements, rate limits, or what the returned details include.

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?

The definition is a single front-loaded sentence with no redundant or filler wording. It is appropriately sized for a one-parameter lookup tool.

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 read tool with complete schema coverage, the definition is minimally adequate. However, with no output schema and no annotations, it could usefully state what order details are returned and what happens on not-found errors.

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?

There is a single required parameter with 100% schema description coverage, including the order_id example format. The description only restates that lookup is by order ID and adds no syntax or semantic detail beyond the schema, so the 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?

The description uses a specific verb (Fetch) and resource (Razorpay order) scoped by order ID, making it clearly distinct from siblings like list_orders or fetch_payment. It stops short of explicitly naming alternatives, so it is clear but not maximally differentiated.

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: an agent can infer this is for retrieving one known order by ID rather than listing or searching orders. There is no explicit when-to-use guidance, no exclusion of alternatives, and no mention of prerequisites such as the order needing to exist.

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