Skip to main content
Glama

Fetch dispute

fetch_dispute
Read-onlyIdempotent

Retrieve a Razorpay dispute by ID using a read-only lookup, with optional payment or settlement expansion and amounts kept in minor units for reconciliation.

Instructions

Retrieve one Razorpay dispute 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": {
      "dispute_id": "<dispute_id>"
    },
    "name": "fetch_dispute"
  }
}

Input Schema

NameRequiredDescriptionDefault
expandNoOptional Razorpay expand[] flags.
dispute_idYesDispute id, e.g. disp_...

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 readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered and "Read-only Razorpay API call" largely restates it. The description does add genuinely new behavioral context, though: amounts come back in minor units (paise for INR), which an agent cannot learn from annotations or schema. It omits error behavior for an unknown id, but given the annotation coverage this is a solid addition.

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 core action, then the safety profile, then the one unit caveat. Nothing is padded or redundant.

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?

This is a simple single-resource read with rich annotations, a 100%-described two-parameter schema, and no output schema, so the description need not explain return fields. The minor-units note covers the main gotcha; only error/not-found behavior and the expand flag's effect are left unstated.

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 dispute_id's pattern/example and the expand[] enum values are already fully documented in the schema. The description adds no parameter-level meaning beyond what the schema provides, which is the baseline 3 case.

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 dispute by id" gives a specific verb, resource, and cardinality, which implicitly separates it from the sibling fetch_all_disputes. It does not name the sibling explicitly, so an agent must infer the single-vs-list distinction, but the intent is unambiguous.

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 implied by the required dispute_id: call this when you already have a disp_ id. There is no explicit when-not guidance, no mention of how to obtain an id (e.g. via fetch_all_disputes), and no mention of the expand parameter's purpose as an alternative retrieval depth.

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