Skip to main content
Glama
mcp-server-razorpay

mcp-server-razorpay

by bugmagnet28

Fetch Customer

fetch_customer

Retrieve a Razorpay customer by customer ID to access their profile and support payment, refund, or subscription workflows.

Instructions

Fetch a Razorpay customer by their customer 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": {
      "customer_id": "<customer_id>"
    },
    "name": "fetch_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
customer_idYesRazorpay Customer ID (e.g. cust_xxxxxx)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. "Fetch" implies a non-mutating read of a single record, which is the key safety signal, but it says nothing about not-found behavior, returned fields, or authentication requirements for Razorpay.

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

Conciseness4/5

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

One short, front-loaded sentence with zero filler; the resource and the lookup key both appear immediately. It is efficient, though the brevity means it carries no extra structure or elaboration.

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 one-parameter read tool with a fully documented schema and no output schema, this covers the essentials of what it does. It is incomplete on return value shape and failure modes, which matter more here since no annotations provide a safety profile.

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?

A single parameter with 100% schema description coverage, including a format example (cust_xxxxxx), so the schema does the heavy lifting. The description restates that the ID identifies the customer but adds no format or validation detail 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 states a specific verb and resource ("Fetch a Razorpay customer") and names the identifier used. It does not distinguish itself from sibling fetch tools (fetch_order, fetch_payment) or mention a list/create alternative, but the resource is unambiguous.

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 only implied: the phrase "by their customer ID" tells an agent it needs an existing customer identifier rather than filters. There is no explicit when-to-use framing, no guidance on what to do if the ID is unknown, and no mention of alternatives.

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