Skip to main content
Glama

Fetch subscription

fetch_subscription
Read-onlyIdempotent

Retrieve one Razorpay subscription by ID to inspect status, plan, and billing details; read-only, with amounts returned in minor units.

Instructions

Retrieve one Razorpay subscription 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": {
      "subscription_id": "<subscription_id>"
    },
    "name": "fetch_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
subscription_idYesSubscription id, e.g. sub_...

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?

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so "Read-only Razorpay API call" largely restates them. The genuinely additive piece is the statement that amounts stay in minor units (paise for INR), which affects how results must be interpreted; nothing is said about not-found behavior 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core action, followed by the safety note and then the unit caveat. No filler or redundant restatement of the schema.

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 one-parameter read tool with rich annotations and no output schema, the definition covers identity, scope and a result-format caveat (minor units) that would otherwise be invisible. Only error/edge behavior (id not found) is unaddressed, a minor 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 description coverage is 100% and the single parameter is fully documented with type, pattern and an example (sub_...). The description adds only that the id refers to a Razorpay subscription, which the schema already makes evident, 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?

"Retrieve one Razorpay subscription by id" gives a specific verb (retrieve), resource (Razorpay subscription) and scope (single, by id), which implicitly separates it from the fetch_all_* list siblings. It stops short of naming an alternative outright, so it is clear but not maximally differentiated.

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 only implied: the agent can infer it should be called when it already holds a sub_ id, since the tool retrieves a single record. There is no explicit when-to-use versus list/search guidance, no stated prerequisite of obtaining the id first, and no note on what to do if the subscription does not exist.

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