Skip to main content
Glama
mcp-server-razorpay

mcp-server-razorpay

by bugmagnet28

List Refunds for Payment

list_refunds_for_payment

Lists all refunds created for a specific Razorpay payment, with skip and count pagination, so agents can audit or verify refund records.

Instructions

List all refunds created for a specific Razorpay payment.

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": "list_refunds_for_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
skipNo
countNo
payment_idYesPayment ID to list refunds for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses only that this is a read of refunds scoped to one payment. Nothing is said about pagination (despite skip/count parameters), result ordering, empty-result behavior, or authorization/scope requirements for a payment belonging to a specific account.

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?

A single, front-loaded sentence that identifies the operation and the scope with no filler or redundancy. Nothing needs trimming; the issue is missing detail, not excess wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a paginated list tool with no annotations and no output schema, the definition should say something about pagination defaults and what a result contains (refund IDs, statuses, amounts). Neither is present, leaving the agent to discover paging behavior and return shape empirically.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only 33% of the schema is described, and the single documented parameter (payment_id, "Payment ID to list refunds for") is already covered by the schema itself. The description adds no meaning for skip and count, which are undocumented beyond their type/default/max in the schema — no indication that they control pagination window or that count is capped at 100.

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 ("List") plus a specific resource ("refunds") scoped to a parent resource ("a specific Razorpay payment"), which clearly separates it from fetch_refund (singular) and list_payments. It stops short of naming a sibling or stating filter/ordering behavior, so it is clear but not maximally differentiated.

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: an agent can infer it should call this when it has a payment_id and wants that payment's refunds. There is no explicit when-to-use statement, no guidance on choosing fetch_refund versus this list tool, and no mention of what to do when no refunds exist.

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