Skip to main content
Glama

Fetch plan

fetch_plan
Read-onlyIdempotent

Retrieve one Razorpay subscription plan by ID for read-only plan lookup and reconciliation; amounts are returned in minor units.

Instructions

Retrieve one Razorpay subscription plan 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": {
      "plan_id": "<plan_id>"
    },
    "name": "fetch_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_idYesPlan id, e.g. plan_...

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?

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so 'read-only Razorpay API call' largely restates structured data. The one piece of genuine added context is that amounts stay in minor units (paise for INR), which affects how an agent interprets returned values; nothing is said about error behavior for an unknown id.

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 core action and scoped tightly to the essential facts. The middle sentence is somewhat redundant with the annotations, keeping it just below top marks.

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 single-parameter read with rich annotations and no output schema, the description covers the action, the safety profile, and the unit convention for returned amounts. A brief note on the returned plan object or not-found behavior would close the remaining gap.

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% and the plan_id pattern plus example are already documented in the schema. The description adds no further meaning about the identifier or its format, so the baseline of 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?

"Retrieve one Razorpay subscription plan by id" gives a specific verb, resource, and cardinality ('one ... by id'), which implicitly separates it from the list-style sibling fetch_all_plans. It does not name the sibling explicitly, so sibling differentiation is inferred rather than stated.

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 'by id' phrasing implies usage when a plan id is already known, but the description never states when to prefer this over fetch_all_plans or any other alternative, and offers no exclusions or prerequisites.

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