Skip to main content
Glama

Fetch all customers

fetch_all_customers
Read-onlyIdempotent

Lists Razorpay customers with pagination, date-range filters, and default email/contact masking for read-only customer lookup.

Instructions

List Razorpay customers. Email and contact are masked by default as email_masked/contact_masked. Read-only Razorpay API call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fetch_all_customers"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoInclusive end time. Unix seconds, ISO date/datetime, or a preset. Date-only values include the full UTC day.
fromNoInclusive start time. Unix seconds, ISO date/datetime, or a preset such as last_7_days, last_30_days, last_90_days, this_month.
skipNoNumber of records to skip.
countNoNumber of records to return (1-100).
fieldsNoOptional response field projection to reduce token payload size. `id` is always retained when present.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description adds the genuinely non-obvious fact that email and contact come back masked. However, the 'by default' wording hints at configurability that no schema parameter exposes, and there is no mention of result ordering or how masking interacts with the fields projection.

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?

Three short, front-loaded sentences with no filler, and the masking caveat appears before the reader would need it. The trailing 'Read-only Razorpay API call' largely restates readOnlyHint=true from the annotations, which is the one redundant line.

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 five-parameter, zero-required list tool with full schema coverage and no output schema, the definition covers what is returned, the masking behavior, and the read-only nature. Gaps are minor: no statement of sort order or default page size expectations, though count/skip defaults are documented in the schema.

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 100%, with from/to accepting Unix seconds, ISO values or presets, and skip/count/fields all documented in detail. The description adds nothing about any parameter, so the baseline 3 applies — the schema does all the semantic work.

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 opens with a specific verb and resource ('List Razorpay customers'), which clearly separates enumeration from the singular fetch_customer sibling. It stops short of naming that sibling explicitly, so the differentiation is implied by the plural noun rather than stated.

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 'List' — an agent can infer this is the bulk-enumeration path — but there is no explicit when-to-use guidance, no mention of when to prefer fetch_customer for a single record, and no note on whether the from/to window is required for sane results.

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