Skip to main content
Glama
mcp-server-razorpay

mcp-server-razorpay

by bugmagnet28

Cancel Subscription

cancel_subscription

Cancel a Razorpay subscription immediately or schedule it to end at the current billing cycle by providing the subscription ID.

Instructions

Cancel a Razorpay subscription immediately or at end of billing cycle.

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": "cancel_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
subscription_idYesSubscription ID to cancel
cancel_at_cycle_endNo0 = cancel immediately, 1 = cancel at end of current cycle

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden of behavioral disclosure for a destructive mutation. It states the two timing modes, which is useful, but says nothing about irreversibility, whether the subscription can be reactivated, what happens to pending or already-charged payments, or what authorization is required.

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?

A single front-loaded sentence with no filler; the two mutually exclusive modes are presented together so the agent gets the full behavioral fork in one pass.

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?

For a simple two-parameter tool with no output schema, the description covers the decision that matters (immediate vs cycle end). It is still thin on the mutation's consequences and post-conditions, which an agent needs before committing an irreversible cancellation.

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%, with both parameters fully described including the 0/1 semantics and default, so the schema does the heavy lifting. The description reinforces the two modes but adds no format, constraints, or edge-case meaning beyond the schema.

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 gives a specific verb and resource ('Cancel a Razorpay subscription') and names the two cancellation timings, so an agent knows exactly what the tool does. It does not explicitly distinguish itself from siblings, though none of the listed siblings appear to perform cancellation, so the risk of confusion is low.

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 implied by the name and by the phrase 'immediately or at end of billing cycle', but there is no explicit when-to-use guidance, no prerequisites (e.g. subscription must be active/authenticated), and no statement about when not to use it or what alternative exists for related operations.

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