Skip to main content
Glama

Fetch refund

fetch_refund
Read-onlyIdempotent

Retrieve a single Razorpay refund by refund ID for read-only lookup and reconciliation; amounts remain in minor units such as paise for INR.

Instructions

Retrieve one Razorpay refund 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": {
      "refund_id": "<refund_id>"
    },
    "name": "fetch_refund"
  }
}

Input Schema

NameRequiredDescriptionDefault
refund_idYesRefund id, e.g. rfnd_...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/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" is largely redundant. The genuinely additive disclosure is that amounts stay in minor units (paise for INR), which shapes how the agent must interpret the response given there is no output schema; no error or not-found behavior is described.

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. Nothing is padded, and the unit caveat is placed after the core statement where it belongs.

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 simple single-record getter with a fully documented parameter and rich annotations, the definition covers purpose, mutation safety, and a critical output-unit convention. It omits any mention of not-found/error behavior or what fields the refund object contains, which is a minor but real gap absent an output schema.

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 coverage is 100% and the single refund_id parameter already carries a regex pattern and an example, so the schema does the heavy lifting. The description adds no additional meaning about id resolution or format beyond what the schema states.

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?

"Retrieve one Razorpay refund by id" names a specific verb (retrieve), resource (refund), and scope (one, by id), which distinguishes it from the plural siblings like fetch_all_refunds. It stops short of explicitly naming fetch_specific_refund_for_payment as the alternative path, so sibling differentiation is implied 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 Guidelines3/5

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

The phrasing "one ... by id" implies the precondition that the caller already holds a refund id, but there is no explicit when-to-use versus fetch_all_refunds or fetch_specific_refund_for_payment. No exclusions or prerequisites are stated beyond that implication.

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