Skip to main content
Glama
mcp-server-razorpay

mcp-server-razorpay

by bugmagnet28

Create Customer

create_customer

Create a new Razorpay customer record with name, email, phone, and notes, and control duplicate handling by returning an existing customer or throwing an error.

Instructions

Create a new 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": {
      "name": "<name>"
    },
    "name": "create_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCustomer full name
emailNoCustomer email address
notesNo
contactNoCustomer phone number with country code e.g. +919876543210
fail_existingNo0 = return existing customer if duplicate, 1 = throw error1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutation tool, and it discloses almost nothing: not the permission/auth requirements, not whether the call is idempotent, not what happens when a customer with the same email already exists, and not what the response looks like. The only real behavioral nuance (duplicate vs error) lives in the schema, not the description.

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?

One front-loaded sentence with zero waste, so structure is fine, but the brevity crosses into under-specification for a create endpoint rather than being a model of concision. There is no wasted wording, but also no second sentence earning its absence.

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 mutation tool with no annotations, no output schema, five parameters including a nested object and an enum-driven duplicate policy, the description should at minimum say what is returned and how duplicates are treated. Without an output schema the agent cannot learn the created object's shape anywhere else, leaving a significant gap.

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 description coverage is 80%, so the schema already explains name, email, contact, and the fail_existing enum semantics; the baseline is therefore 3. The description adds no meaning beyond the schema, and the one undocumented parameter (notes, a nested string map) receives no clarification.

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?

"Create a new customer in Razorpay" names a specific verb (create) and resource (customer) and scopes it to the Razorpay entity, which cleanly separates it from the fetch_customer sibling. It stops short of describing what a created customer record contains or what state it starts in, so it is clear but thin.

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 guidance on when to use this versus fetch_customer or any other sibling, no mention of prerequisites such as API key scopes, and no discussion of the duplicate-handling path that the fail_existing parameter implies. The agent must infer all usage context from the name alone.

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