Skip to main content
Glama
mcp-server-razorpay

mcp-server-razorpay

by bugmagnet28

Capture Payment

capture_payment

Capture an authorized Razorpay payment by submitting the exact order amount in paise, so authorized funds are collected.

Instructions

Capture an authorized Razorpay payment. Amount must match the original order amount in paise.

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_id": "<payment_id>",
      "amount": "<amount>"
    },
    "name": "capture_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount in paise to capture
currencyNoINR
payment_idYesRazorpay Payment ID to capture

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the authorization and exact-amount requirements, but does not explain the resulting payment state, irreversibility, behavior for already captured payments, or retry and idempotency considerations.

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?

Two short sentences front-load the operation and then state its critical amount constraint. There is no redundant or unnecessary wording.

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?

Together with the flat schema, the description provides enough information for a basic valid invocation. For an unannotated financial mutation with no output schema, however, the lack of outcome, failure, and retry behavior leaves a moderate completeness gap.

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

Parameters4/5

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

Beyond the schema's basic amount description, it adds the important constraint that amount must equal the original order amount rather than merely be a positive value in paise. It also implicitly narrows payment_id to an authorized payment, though it adds no further guidance for currency.

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 uses a specific verb and resource: capturing an authorized Razorpay payment. The authorization prerequisite and amount constraint clarify the operation, although no sibling tool or contrasting use case is named.

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

Usage Guidelines4/5

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

It gives clear invocation preconditions: use the tool for an authorized payment and supply an amount matching the original order amount in paise. It does not explicitly state when not to capture or direct the agent to fetch_payment or another sibling for verification.

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