Skip to main content
Glama

Fetch order payments

fetch_order_payments
Read-onlyIdempotent

List every payment recorded for a single Razorpay order using its order ID, with read-only API access and amounts returned in minor units.

Instructions

List all payments made for one Razorpay order. 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_payments"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesOrder id, e.g. order_...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so 'Read-only Razorpay API call' largely restates structured data. The one genuinely additive disclosure is that amounts stay in minor units (paise for INR), which prevents misreading financial values, but pagination, result-size limits, and empty-order behavior are unstated.

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, front-loaded with the action and scope, then the safety profile, then the one non-obvious caveat about currency units. No padding or redundancy.

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 single-parameter, read-only list tool with full schema coverage and rich annotations, the description says enough to invoke it correctly and flags the minor-units convention. With no output schema present, it could have said more about the returned shape or pagination, which is the only remaining gap.

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%, with order_id documented including its regex pattern and an example, so the schema already carries parameter meaning. The description adds no syntax or format guidance beyond that, making the baseline 3 appropriate.

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 leads with a specific verb and resource ('List all payments') and scopes it to 'one Razorpay order', which distinguishes it from the global fetch_all_payments and the single-resource fetch_payment without needing to name them. It stops short of explicitly contrasting sibling tools, so it is clear but not maximally differentiating.

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?

The scoping phrase 'for one Razorpay order' implies when to reach for this tool rather than the all-payments listing, but there is no explicit when-to-use, when-not-to-use, or named alternative. Usage must be inferred from the scope alone.

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