Skip to main content
Glama

Fetch payment

fetch_payment
Read-onlyIdempotent

Retrieves a single Razorpay payment by ID for read-only reconciliation and lookup; amounts stay in minor units.

Instructions

Retrieve one Razorpay payment 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": {
      "payment_id": "<payment_id>"
    },
    "name": "fetch_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
expandNoOptional Razorpay expand[] flags.
payment_idYesPayment id, e.g. pay_...

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 the sentence 'Read-only Razorpay API call' largely restates structured data. The genuinely additive piece is 'Amounts remain in minor units (paise for INR)' — a return-value trait carried nowhere else since there is no output schema — but it stops short of noting error behavior for unknown ids or what expand changes in the response.

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

Conciseness4/5

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

Three short sentences, front-loaded with the core action and with no filler. The second sentence slightly duplicates readOnlyHint from the annotations rather than earning its place, which keeps it just below the top mark.

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 two-parameter read with rich annotations, the definition is adequate: scope is clear and the minor-units caveat pre-empts a common misinterpretation. With no output schema, a little more about what the payment object contains or how expand alters it would be needed to call this complete.

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 payment_id pattern and expand enum documented in the schema, so the baseline applies. The description adds no meaning about payment_id format or the effect of the expand flags on the returned payload.

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

Purpose5/5

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

States a specific verb and resource with explicit cardinality: 'Retrieve one Razorpay payment by id.' The singular, id-scoped framing distinguishes it cleanly from fetch_all_payments and other collection-fetching siblings without needing to name them.

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 it should call this when it holds a pay_... id, but the description never states that condition, never mentions alternatives such as fetch_all_payments or fetch_payment_card_details, and gives no exclusions or prerequisites.

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