Skip to main content
Glama

Fetch payment card details

fetch_payment_card_details
Read-onlyIdempotent

Retrieve safe card metadata for a Razorpay payment while stripping tokens, fingerprints, and full card numbers; read-only and requires a payment ID.

Instructions

Retrieve safe card metadata for a card payment. Card tokens, fingerprints, and full card numbers are always stripped. 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": {
      "payment_id": "<payment_id>"
    },
    "name": "fetch_payment_card_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
payment_idYesPayment id, e.g. pay_...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing data-handling behavior: card tokens, fingerprints, and full card numbers are always stripped, which tells the agent what it will NOT receive and that no sensitive data can leak. The 'Read-only Razorpay API call' sentence merely restates readOnlyHint=true, and nothing is said about failure modes for non-card payments.

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 sentences with the core purpose front-loaded and zero filler. The closing 'Read-only Razorpay API call' is slight redundancy against the readOnlyHint annotation, costing a point.

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 single-parameter fetch tool with no output schema, the description should sketch what metadata comes back (last4, network, expiry, etc.). It instead lists only what is stripped, so the agent knows the exclusions but not the payload shape.

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% — the payment_id parameter already carries a pattern and example (pay_...). The description adds only the constraint that the payment must be a card payment, which is useful but marginal over the schema; baseline 3 applies.

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?

Specific verb and resource: 'Retrieve safe card metadata for a card payment', scoped to a payment_id. An agent can distinguish this from the broader fetch_payment sibling because it targets card metadata rather than the payment object itself, though the description never names that distinction explicitly.

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 'for a card payment' — the tool applies when a payment_id is card-funded. There is no explicit when-to-use versus fetch_payment or when-not guidance (e.g., what happens for non-card payment methods), so the agent must infer routing.

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