Skip to main content
Glama

Fetch multiple refunds for a payment

fetch_multiple_refunds_for_payment
Read-onlyIdempotent

Lists refunds created for a specific payment, with optional date filtering and pagination. Use it to review or reconcile Razorpay refunds without changing payment data.

Instructions

List refunds created for one 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>"
    },
    "name": "fetch_multiple_refunds_for_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoInclusive end time. Unix seconds, ISO date/datetime, or a preset. Date-only values include the full UTC day.
fromNoInclusive start time. Unix seconds, ISO date/datetime, or a preset such as last_7_days, last_30_days, last_90_days, this_month.
skipNoNumber of records to skip.
countNoNumber of records to return (1-100).
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, idempotentHint, non-destructive and openWorldHint=false, so 'Read-only Razorpay API call' is largely redundant. The genuinely additive piece is 'Amounts remain in minor units (paise for INR)', which tells the agent how to interpret returned values — context unavailable in either the schema or the annotations.

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 purpose and free of filler. The 'Read-only Razorpay API call' sentence is the one piece that duplicates structured annotation data rather than earning its place.

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 five-parameter read-only list tool with full schema descriptions and a complete annotation set, the definition covers purpose, safety profile, and return-value formatting. It omits nothing an agent needs to call it correctly; only return ordering and pagination expectations are left unspecified, which is acceptable without 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 description coverage is 100%, and the schema itself documents the from/to time formats, presets, skip and count ranges in detail. The description adds no parameter-level meaning beyond what is already structured, 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 gives a specific verb and resource ('List refunds') bounded to a single parent entity ('created for one payment'), which separates it from fetch_all_refunds and the singular fetch_specific_refund_for_payment. It stops short of explicitly naming those siblings, but the scoping phrase does the disambiguating work.

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: the phrase 'for one payment' signals you need a payment context, and the required payment_id parameter reinforces it. There is no explicit statement of when to prefer this over fetch_all_refunds or fetch_specific_refund_for_payment, and no mention of when an empty result would be expected.

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