Skip to main content
Glama

Fetch settlement

fetch_settlement_with_id
Read-onlyIdempotent

Retrieve a specific Razorpay settlement by settlement ID for reconciliation and reporting. Provides read-only details, with amounts kept in minor units.

Instructions

Retrieve one Razorpay settlement 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": {
      "settlement_id": "<settlement_id>"
    },
    "name": "fetch_settlement_with_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
settlement_idYesSettlement id, e.g. setl_...

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, and destructiveHint=false, so the 'Read-only Razorpay API call' sentence is largely redundant. The genuinely additive disclosure is that amounts stay in minor units (paise for INR), a return-value convention not present in any structured field. It stops short of noting what happens when the id is unknown.

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 action front-loaded and no padding. The read-only sentence duplicates the annotations and could be dropped, which is the only real waste.

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 one-parameter, single-resource lookup with full schema coverage, the definition covers action, safety, and the currency-unit convention of the payload. With no output schema present, a brief note on error behavior for a missing id would make it fully self-sufficient.

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 single parameter already documents its format and pattern (^setl_[A-Za-z0-9]+$). The description only restates 'by id' and adds no syntax or format detail beyond the schema, 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?

States a specific verb and resource with explicit scope: retrieve ONE settlement by id. It is clearly a single-item fetch rather than a list. It does not differentiate itself from the sibling fetch_instant_settlement_with_id, so an agent must infer that distinction from the name alone.

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 'by id' implies usage for looking up a known settlement, and the sibling list contains fetch_all_settlements as the natural list counterpart. However, the description never says when to prefer this over the instant-settlement variant or the list tool, so guidance is implied rather than stated.

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