Skip to main content
Glama

Fetch invoice

fetch_invoice
Read-onlyIdempotent

Retrieve a single Razorpay invoice by ID for read-only revenue lookups, with amounts returned in minor units (paise for INR).

Instructions

Retrieve one Razorpay invoice 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": {
      "invoice_id": "<invoice_id>"
    },
    "name": "fetch_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoice_idYesInvoice id, e.g. inv_...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuinely non-obvious context beyond them — that amounts come back in minor units (paise for INR) — which prevents an agent from misreading the response, though error behavior (e.g. invalid or unknown id) is not addressed.

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, zero filler: purpose first, then safety trait, then the unit caveat. Nothing repeats the schema or the annotations verbatim.

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, non-destructive lookup with no output schema, the description covers purpose, safety, and a key response-format caveat. Only failure modes and what the returned object contains are left unstated, which is acceptable at this complexity.

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% with the id pattern (`^inv_[A-Za-z0-9]+$`) and an example already documented in the schema. The description only restates that a single id is required, adding no syntax or format detail beyond the structured field; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ("Retrieve one Razorpay invoice by id") and its singular 'by id' phrasing implicitly separates it from the sibling bulk tool fetch_all_invoices, so an agent can route correctly without opening the schema.

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: the agent must already possess an invoice id to call it, and 'by id' hints at that precondition. There is no explicit when-to-use/when-not and no named alternative for bulk listing or for other invoice operations.

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