Skip to main content
Glama
mcp-server-razorpay

mcp-server-razorpay

by bugmagnet28

Fetch Subscription

fetch_subscription

Retrieve a Razorpay subscription by its subscription ID to inspect details such as status, plan, and billing information.

Instructions

Fetch a Razorpay subscription by subscription ID.

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_idYesRazorpay Subscription ID (e.g. sub_xxxxxx)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden and does not meet it. It does not state what happens when the ID is missing or malformed, whether it returns live vs test-mode records, or what the response contains — for a network-backed lookup with no output schema, these gaps matter.

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?

One sentence, front-loaded with the verb and resource, with zero redundant wording. It is as tight as a definition of this scope can be.

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-by-ID tool whose parameter is fully documented, the definition is nearly sufficient; the returned entity is strongly implied by the resource name. The missing piece is not-found/error behavior and confirmation that this is a non-mutating lookup, which no annotation supplies.

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?

The single parameter is 100% documented in the schema with a concrete example format (sub_xxxxxx), so the schema does the work. The phrase "by subscription ID" merely restates that parameter rather than adding constraints such as accepted prefix or mode handling, so the 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?

The description states a specific verb and resource ("Fetch a Razorpay subscription") and names the identifying key, so the operation is unambiguous. It does not distinguish itself from sibling reads like fetch_customer or fetch_order beyond the resource name, nor from create/cancel_subscription beyond the verb.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus list-style or creation tools, no mention of prerequisites such as authentication or a valid/live subscription state. The only implied usage is 'you have a subscription ID', which the schema already conveys.

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