Skip to main content
Glama

Fetch all orders

fetch_all_orders
Read-onlyIdempotent

List Razorpay orders with time-range, receipt, authorization, pagination, and expand filters for read-only revenue lookups and reconciliation.

Instructions

List Razorpay orders with time, pagination, authorization, receipt, 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_orders"
  }
}

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.
receiptNoFilter by receipt value (max 40 chars).
authorizedNoFilter by payment authorization: true/1 for authorized, false/0 for unauthorized.

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?

Read-only, idempotent, non-destructive behavior is already declared in annotations, and the sentence 'Read-only Razorpay API call' merely repeats it. The genuinely additive piece is the amount-format caveat that values stay in minor units (paise for INR), which prevents a real misinterpretation of returned data. Beyond that, nothing is said about default result size behavior, pagination traversal, or rate limits.

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 with the capability statement front-loaded, followed by the safety note and the units caveat. The middle sentence restates what annotations already say and could be dropped, but overall it is tight and easy to scan.

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 an eight-parameter, fully-optional read tool with no output schema, the definition covers what the tool returns conceptually (orders) and flags the minor-unit amount convention an agent must know. Defaults, pagination semantics, and response shape are left to the schema, which is acceptable given the 100% schema coverage.

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 every parameter (from/to presets, skip/count, expand, fields, receipt, authorized) is already documented in the schema. The description only enumerates filter categories that map onto those same parameters without adding format or edge-case detail, so 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 ('List Razorpay orders') plus the axes it can filter on (time, pagination, authorization, receipt, expand), so an agent can tell it is a bulk listing rather than a single-order fetch. It does not explicitly name the sibling fetch_order as the single-record alternative, so it stops 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?

Usage is implied by 'List ... orders' — an agent can infer this is for enumerated/bulk retrieval versus the singular fetch_order sibling. But there is no explicit when-to-use or when-not-to-use statement, nor any mention of when to prefer this over companion tools like summarize_razorpay_resource.

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