Skip to main content
Glama
mcp-server-razorpay

mcp-server-razorpay

by bugmagnet28

Fetch Refund

fetch_refund

Retrieve a specific Razorpay refund using its refund ID and associated payment ID to verify refund details and status.

Instructions

Fetch a specific refund by refund ID and 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>",
      "refund_id": "<refund_id>"
    },
    "name": "fetch_refund"
  }
}

Input Schema

NameRequiredDescriptionDefault
refund_idYesRefund ID (e.g. rfnd_xxxxxx)
payment_idYesPayment ID associated with the refund

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description bears the full burden, and all it conveys is 'Fetch', which implies a read. It does not say whether the call errors when the refund ID exists but belongs to a different payment, whether deleted/refunded records are returned, or what the response looks like — for a two-key lookup where key consistency matters, this is a meaningful gap.

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?

A single front-loaded sentence with zero filler, and the identifying information appears immediately. It is arguably too terse for a tool with no annotations, but nothing in the text is redundant.

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?

The tool is simple, its schema is fully described, and there is no output schema to explain, so the core lookup is covered. However, with zero annotations and no error or return behavior noted, an agent lacks the information needed to handle mismatched or missing IDs — the minimum viable bar.

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%, so both parameters are already documented in the schema (including the 'rfnd_xxxxxx' example format). The description only restates that both are required keys and adds no semantics about their relationship or validation, so 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') with a specific resource ('a specific refund') and states the lookup key is the pair of refund ID and payment ID. This implicitly separates it from the list-style sibling (list_refunds_for_payment) and its single-resource peers, though it never names an alternative explicitly.

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 guidance on when to call this instead of list_refunds_for_payment or fetch_payment; the agent must infer that it applies only when both IDs are already known. No prerequisites, no exclusions, no mention of what happens if the IDs disagree or the refund is absent.

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