Skip to main content
Glama

Fetch payment link

fetch_payment_link
Read-onlyIdempotent

Retrieve a Razorpay payment link by ID for read-only lookups; returns link details with amounts in minor units (paise for INR).

Instructions

Retrieve one Razorpay payment link 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": {
      "payment_link_id": "<payment_link_id>"
    },
    "name": "fetch_payment_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
payment_link_idYesPayment link id, e.g. plink_...

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, idempotentHint, destructiveHint=false and openWorldHint=false, so the sentence 'Read-only Razorpay API call' mostly restates structured data. The one genuinely additive disclosure is that amounts stay in minor units (paise for INR), which matters because no output schema exists. Missing: behavior when the id is not found and any auth/scope requirements.

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, front-loaded sentences with the core action first, followed by read-only semantics and the units caveat. The middle sentence largely duplicates the annotations, which is the only wasted material.

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 single-parameter read-only fetch with no output schema, the description covers the key gotcha (minor-unit amounts) that an agent would otherwise get wrong when reading the response. It leaves a small gap around not-found behavior, but nothing essential for calling the tool is missing.

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 carries a description and the plink_ pattern, so the schema does the heavy lifting. The description adds no further meaning about the id format or where to obtain it; baseline 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 ('Retrieve one Razorpay payment link by id'), and the qualifier 'one ... by id' implicitly contrasts with the sibling fetch_all_payment_links. It does not name that sibling explicitly, so it falls short of full differentiation.

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 the tool requires a known payment link identifier, which is adequate implied guidance for a single-record fetch. However, there is no explicit statement of when to prefer this over fetch_all_payment_links or the summarize tool, and no prerequisites or error conditions are described.

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