Skip to main content
Glama

Fetch all refunds

fetch_all_refunds
Read-onlyIdempotent

Retrieve Razorpay refunds using date-range, pagination, and field filters to support reconciliation and reporting; read-only API access keeps amounts in minor units.

Instructions

List Razorpay refunds with time and pagination filters. Read-only Razorpay API call. Amounts remain in minor units (paise for INR).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fetch_all_refunds"
  }
}

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).
fieldsNoOptional response field projection to reduce token payload size. `id` is always retained when present.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so 'Read-only Razorpay API call' is largely restatement. The genuinely additive piece is that returned amounts stay in minor units (paise for INR), a domain gotcha not present in the annotations or schema; nothing is said about default page size, result ordering, or rate limits.

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 with the core capability front-loaded and zero filler. The second sentence mostly duplicates the readOnlyHint annotation, which is the only mild redundancy.

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?

With five optional parameters and no output schema, the description covers the essential gotcha an agent needs before consuming results, namely the minor-unit amounts, and confirms the filter surface. What it omits about result shape, pagination defaults, and how to continue through pages is modest but not trivial for a paged list endpoint.

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 from/to presets, skip, count bounds, and the fields projection are already fully documented upstream, making 3 the baseline. The description confirms the time and pagination dimensions but adds no syntax or format detail, and it never mentions the fields projection parameter that reduces payload size.

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?

States a specific verb and resource ('List Razorpay refunds') plus the supported filter axes (time, pagination), which clearly separates it from single-record siblings like fetch_refund. It stops short of naming a sibling, so an agent must infer from the name alone that this is the bulk/all-records variant versus fetch_multiple_refunds_for_payment.

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 mention of time and pagination filters suggests use when browsing a refund list over a window, but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative tool for a single refund or for refunds tied to one payment.

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