Skip to main content
Glama

Fetch specific refund for payment

fetch_specific_refund_for_payment
Read-onlyIdempotent

Fetches one refund belonging to a specific payment via a read-only Razorpay API call; amounts remain in minor units.

Instructions

Retrieve one refund belonging to a specific payment. 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>",
      "refund_id": "<refund_id>"
    },
    "name": "fetch_specific_refund_for_payment"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description earns credit for adding a substantive behavioral detail beyond the annotations: returned amounts stay in minor units (paise for INR), which affects how the agent must interpret the response. The "Read-only Razorpay API call" sentence largely restates the annotation.

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 purpose before the minor structural notes. Tight overall, though "Read-only Razorpay API call" duplicates the readOnlyHint annotation and could be dropped without loss.

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 two-parameter, idempotent read tool with no output schema, the definition covers purpose, the single-entity return shape and the unit convention for amounts. Rich annotations and full schema coverage carry the rest; only an explicit pointer to sibling alternatives is missing.

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%: both payment_id and refund_id carry descriptions, format examples (pay_..., rfnd_...) and regex patterns. The description adds nothing about the parameters themselves, so the baseline 3 is appropriate when the schema does all the parameter work.

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 refund belonging to a specific payment" gives a specific verb (retrieve), resource (refund), and cardinality/scope (one, scoped to a payment). This implicitly separates it from fetch_multiple_refunds_for_payment and fetch_refund, but it never names those siblings, so the differentiation is inferential rather than explicit.

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 phrase "belonging to a specific payment" implies when this tool applies (you have both a payment id and refund id), but there is no explicit when-to-use or when-not-to-use guidance. The agent must reason on its own that fetch_multiple_refunds_for_payment covers the list case and fetch_refund covers id-only lookups.

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