Skip to main content
Glama

Fetch QR code

fetch_qr_code
Read-onlyIdempotent

Retrieve a single Razorpay QR code by its ID to inspect QR details for payment collection. The read-only call returns amounts in minor units, such as paise for INR.

Instructions

Retrieve one Razorpay QR code 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": {
      "qr_code_id": "<qr_code_id>"
    },
    "name": "fetch_qr_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
qr_code_idYesQR code id, e.g. qr_...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so "Read-only Razorpay API call" largely restates structured data. The one genuinely additive behavioral fact is that amounts remain in minor units (paise for INR), which prevents a unit-interpretation error, but nothing is said about response shape or failure behavior for an unknown id.

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 action and resource, then the safety profile, then the one non-obvious data caveat. Nothing is redundant enough to remove and there is no filler.

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 read tool with full annotation coverage and a fully described schema, the definition covers what an agent needs to call it correctly, and the minor-units note preempts a plausible misinterpretation. It is slightly thin on what the call returns, though with no output schema that gap is mild rather than blocking.

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 coverage is 100%: qr_code_id is documented with an example and a regex pattern in the schema itself. The description's "by id" adds no syntax or format meaning beyond that, so the 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?

"Retrieve one Razorpay QR code by id" gives a specific verb (retrieve), a specific resource (Razorpay QR code), and a cardinality constraint (one, by id) that implicitly separates it from the sibling fetch_all_qr_codes. It stops short of naming any sibling explicitly, so the differentiation is inferred rather than stated.

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 "by id" phrasing implies this is the single-record lookup path, which is adequate usage signal for a simple fetch. There is no explicit statement of when to prefer it over fetch_all_qr_codes or fetch_payments_for_qr_code, and no prerequisites or error conditions are mentioned.

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