Skip to main content
Glama
mcp-server-razorpay

mcp-server-razorpay

by bugmagnet28

Create Subscription

create_subscription

Creates a recurring Razorpay subscription for a customer by specifying a plan and total billing cycles.

Instructions

Create a recurring subscription for a customer in Razorpay.

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>",
      "total_count": "<total_count>"
    },
    "name": "create_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
plan_idYesRazorpay Plan ID (e.g. plan_xxxxxx)
quantityNo
start_atNoUnix timestamp for when subscription starts
total_countYesTotal number of billing cycles
customer_notifyNo1 = notify customer via SMS/email, 0 = silent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full burden for a mutation tool that initiates recurring billing, yet it discloses nothing about required auth/API key scope, what happens if the plan is invalid, whether the subscription starts immediately or at start_at, or whether it can be undone. Only the bare 'recurring' nature of the resource is conveyed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

A single front-loaded sentence with no filler, so nothing is wasteful. However, the brevity reflects under-specification rather than disciplined conciseness, leaving essential context out.

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

Completeness2/5

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

For a 6-parameter mutation tool with nested objects, no annotations, and no output schema, one sentence is inadequate. The agent gets no return-value expectations (subscription ID, status), no failure modes, and no guidance on the required total_count/plan_id semantics.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 67%, and the description adds no meaning beyond the schema — it doesn't explain total_count/quantity interplay, the semantics of start_at versus immediate start, or what notes are used for. The two undocumented parameters (notes, quantity) remain unexplained in both places.

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 ('Create a recurring subscription') plus the domain ('for a customer in Razorpay'), which is enough to distinguish it from cancel_subscription and fetch_subscription. It stops short of explicitly contrasting with those siblings, so it isn't a 5.

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 when-to-use guidance, no prerequisites (e.g. that plan_id must reference an existing Razorpay plan), and no mention of when to prefer this over create_order or create_payment_link for one-off charges. The agent must infer all routing decisions 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.