Skip to main content
Glama
mcp-server-razorpay

mcp-server-razorpay

by bugmagnet28

Deactivate Payment Link

deactivate_payment_link

Expire a Razorpay payment link using its payment_link_id, preventing further use for payment.

Instructions

Deactivate (expire) a Razorpay payment link so it can no longer be used.

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": {
      "payment_link_id": "<payment_link_id>"
    },
    "name": "deactivate_payment_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
payment_link_idYesPayment Link ID to deactivate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It usefully discloses the core consequence (the link can no longer be used), which goes beyond the schema. However, it says nothing about reversibility, idempotency when the link is already expired, what happens to payments already made on the link, or what the response contains.

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 the verb first and no redundant or decorative wording. Every clause contributes information.

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 one-parameter mutation with no output schema and no annotations, the description is adequate but thin. The material omissions are the irreversibility of expiration and any error or idempotency behavior, which matter for a state-changing tool.

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?

There is one parameter and schema description coverage is 100%, so the schema already explains payment_link_id as the link to deactivate. The description adds no format, source, or lookup detail beyond that, 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?

The description pairs a specific verb ("Deactivate") with a specific resource ("a Razorpay payment link") and states the resulting state ("can no longer be used"). This is enough to distinguish it from the create/fetch/list siblings, though no sibling is named explicitly.

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 effect clause: an agent can infer it should call this when a link must stop accepting payments. There is no explicit when-not guidance, no mention of an alternative such as expiring versus deleting, and no stated prerequisites.

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