Skip to main content
Glama

Fetch customer

fetch_customer
Read-onlyIdempotent

Retrieve a single Razorpay customer by customer ID for read-only lookups; email and contact details are masked by default.

Instructions

Retrieve one Razorpay customer. Email and contact are masked by default. Read-only Razorpay API call.

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_idYesCustomer id, e.g. cust_...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so 'Read-only Razorpay API call' mostly restates them. However, 'Email and contact are masked by default' is genuine non-obvious behavioral context about the returned data, though it doesn't say whether or how unmasking is possible.

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?

Three short sentences with zero waste, front-loading the action before the masking caveat and the safety note. Nothing could be removed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 rich annotations and no output schema, this covers what the agent needs: what it fetches, that it is a safe read, and that fields are masked. Only the absence of any hint about the response shape or what masking implies for downstream use keeps it from a 5.

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% and the single customer_id parameter already has a pattern and example, so the schema carries the semantic load. The description adds no additional detail about the id format or validation, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Retrieve one Razorpay customer') and the singular scope distinguishes it from the sibling fetch_all_customers without needing to name it. An agent can immediately tell this is a single-record lookup.

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?

The word 'one' implies this is the path when you already have a single customer_id rather than listing, but the description never explicitly says when to prefer it over fetch_all_customers or summarize_razorpay_resource. Usage is inferable rather than stated.

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