Skip to main content
Glama

Fetch payments for QR code

fetch_payments_for_qr_code
Read-onlyIdempotent

Lists payments made on a specific Razorpay QR code using a read-only API call, with date filtering and pagination; amounts are returned in minor units such as paise.

Instructions

List payments made on one Razorpay QR code. Read-only Razorpay API call. Amounts remain in minor units (paise for INR).

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": {
      "qr_code_id": "<qr_code_id>"
    },
    "name": "fetch_payments_for_qr_code"
  }
}

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).
qr_code_idYesQR code id, e.g. qr_...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the 'Read-only Razorpay API call' sentence largely repeats structured data. It does add useful non-obvious context that amounts remain in minor units (paise for INR), though it omits pagination limits and ordering behavior.

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, front-loaded with purpose, then safety, then the unit caveat. No filler.

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?

No output schema, so the description should say more about what a payment record contains and pagination behavior; it notes minor units but not result ordering or maximum page size. Adequate for a simple list tool but leaves gaps.

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?

Schema coverage is 100% with rich per-parameter descriptions (inclusive time ranges, presets, skip/count bounds), so baseline is 3. The description adds the minor-units caveat for amounts, which is relevant output semantics rather than parameter meaning, so it edges slightly above baseline.

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?

States a specific verb (List) and resource (payments made on one Razorpay QR code), scoped to a single QR code id. It doesn't explicitly contrast with fetch_all_payments or fetch_qr_code, but the scoping to one QR code makes the distinction inferable.

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?

Implied usage: when you have a qr_code_id and want its payments. No explicit when-not or alternative routing to fetch_all_payments or fetch_qr_code, so guidance is only inferable from the scope phrase.

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