Skip to main content
Glama

Fetch all plans

fetch_all_plans
Read-onlyIdempotent

Lists Razorpay subscription plans with pagination and date filters for read-only revenue lookups; amounts stay in minor units (paise for INR).

Instructions

List Razorpay subscription plans. 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_plans"
  }
}

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).
fieldsNoOptional response field projection to reduce token payload size. `id` is always retained when present.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 "Read-only Razorpay API call" is largely redundant. The genuinely additive detail is the note that amounts stay in minor units (paise for INR), a non-obvious data-format trait not captured by the annotations or schema; pagination behavior and default page size are still unaddressed.

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 the purpose and with zero filler. The middle sentence restates annotation-declared read-only behavior and could be dropped without loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description carries responsibility for describing return values; it covers the minor-units convention but says nothing about the shape of a plan record or how pagination/skip-count results are returned. Adequate for a simple list tool but with clear gaps on the return side.

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 five parameters (from, to, skip, count, fields) are already fully documented in the schema. The description adds no additional meaning about parameter behavior or interactions, which is acceptable but adds no value here.

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?

"List Razorpay subscription plans" gives a specific verb plus resource and, via "all", implies this is the collection-level counterpart to fetch_plan. It does not explicitly name or contrast with the singular fetch_plan sibling, so sibling differentiation is left to inference.

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 listing scope implies when the tool applies, but there is no explicit when-to-use or when-not-to-use statement and no mention of fetch_plan for single-record lookups. The agent must infer the choice between list and single-fetch from the tool name alone.

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