Skip to main content
Glama

Fetch all payments

fetch_all_payments
Read-onlyIdempotent

List Razorpay payments with time, pagination, status, method, and expand filters for read-only reconciliation and reporting.

Instructions

List Razorpay payments with time, pagination, status, method, and expand 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_payments"
  }
}

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.
countNoNumber of records to return (1-100).
expandNoOptional Razorpay expand[] flags.
fieldsNoOptional response field projection to reduce token payload size. `id` is always retained when present.
methodNoOptional client-side payment method filter.
statusNoOptional client-side status filter.

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 this as read-only, idempotent, non-destructive, and closed-world, so the description's statement that it is a read-only API call mostly repeats structured data. It does add useful context that payment amounts remain in minor units, but it does not explain return shape, rate limits, or authentication requirements.

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?

The description is three short sentences with no wasted wording. The core purpose is front-loaded, followed by the read-only note and the important units caveat.

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?

Given full annotation coverage and 100% schema description coverage, the description is complete enough for an agent to select and invoke the tool. The minor units note is valuable, though it could have mentioned response field projection or pagination behavior more explicitly.

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 the schema already documents all eight parameters in detail. The description summarizes the filter areas but does not add parameter-level semantics beyond the schema, such as field projection behavior or pagination defaults, so baseline 3 is appropriate.

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?

The description clearly states that this tool lists Razorpay payments and mentions the main filter categories (time, pagination, status, method, expand). It does not explicitly distinguish itself from singular or order-scoped siblings such as fetch_payment or fetch_order_payments, but the verb+resource is still clear.

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 implied: use this to list payments and apply filters. However, it gives no explicit when-to-use vs when-not-use guidance and does not name alternatives for narrower cases such as fetching a single payment or payments for an order.

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