Skip to main content
Glama
mcp-server-razorpay

mcp-server-razorpay

by bugmagnet28

Fetch Payment

fetch_payment

Look up a Razorpay payment by ID to verify its status, amount, and method. Use it to confirm transactions or troubleshoot payment issues.

Instructions

Fetch details of a specific Razorpay payment by payment 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": {
      "payment_id": "<payment_id>"
    },
    "name": "fetch_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
payment_idYesRazorpay Payment ID (e.g. pay_xxxxxx)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden. "Fetch" implies a read operation, but the definition says nothing about authentication, rate limits, not-found/error behavior, or what "details" are returned, which is a significant gap for an unannotated tool.

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?

It is a single front-loaded sentence with no filler, and the resource plus identifier scope appear immediately. Nothing in the sentence is redundant or wasteful.

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 one-parameter read tool with fully documented schema coverage, the description is sufficient to identify the operation. However, with no output schema and no annotations, it could say more about the returned details or failure cases to fully guide an agent.

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% and the single parameter already documents the Razorpay Payment ID with an example (pay_xxxxxx). The description only restates "by payment ID" and adds no format or validation meaning beyond the schema, so the baseline of 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 payment") scoped by payment ID, so an agent can tell it retrieves a single payment rather than a list. It does not explicitly name siblings like list_payments or capture_payment, leaving differentiation implicit 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no mention of when not to use it, and no named alternatives such as list_payments for browsing or capture_payment for mutating a payment. The only implied usage is that you need a payment ID and want its details.

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