Skip to main content
Glama

Fetch all invoices

fetch_all_invoices
Read-onlyIdempotent

List and filter Razorpay invoices by payment, customer, subscription, type, or date range to support reconciliation and reporting; read-only API access returns amounts in minor units.

Instructions

List Razorpay invoices with payment, customer, subscription, and type filters. Read-only Razorpay API call. Amounts remain in minor units (paise for INR).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fetch_all_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoInclusive end time. Unix seconds, ISO date/datetime, or a preset. Date-only values include the full UTC day.
fromNoInclusive start time. Unix seconds, ISO date/datetime, or a preset such as last_7_days, last_30_days, last_90_days, this_month.
skipNoNumber of records to skip.
typeNoInvoice type filter.
countNoNumber of records to return (1-100).
fieldsNoOptional response field projection to reduce token payload size. `id` is always retained when present.
payment_idNoFilter by payment id.
customer_idNoFilter by customer id.
subscription_idNoFilter by subscription id.

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 safety profile is covered. The description adds a genuinely non-obvious behavioral fact not in the structured fields: amounts stay in minor currency units (paise for INR), which prevents misinterpretation of returned values. It says nothing about pagination behavior, but that is documented in the schema defaults.

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, front-loaded with what the tool returns and what can be filtered, then the unit caveat. The sentence "Read-only Razorpay API call" largely repeats the annotations, but it is a single clause and still useful orientation for an agent scanning the text.

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?

Nine all-optional parameters with full schema documentation and no output schema means the description does not need to explain return shapes or pagination defaults. The main gap is the absence of any explicit alternative routing to the single-invoice tool, but otherwise an agent has what it needs to invoke this correctly.

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 all nine parameters, including time-range formats, presets, and pagination bounds, are already fully documented in the schema. The description only restates the filter categories at a high level and adds no syntax or constraint detail beyond that, which is the expected baseline when the schema carries the load.

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 ("List Razorpay invoices") plus the filter dimensions it supports, so an agent can distinguish it from a single-record fetch. It does not explicitly name the singular sibling fetch_invoice or otherwise contrast scope, leaving that distinction to inference from the plural phrasing.

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 description conveys that this is a filtered listing operation, implying it should be used for bulk retrieval rather than fetching one known invoice. There is no explicit when-to-use / when-not-to-use statement and no pointer to fetch_invoice for single-record lookups.

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