Skip to main content
Glama

Read a payment receipt

read_payment
Read-onlyIdempotent

Read one card payment and its refunds, as on its receipt in the app. Read-only; refunds are requested in the app.

Permission: account:read.

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": "read_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
payment_idYesPayment ID from read_statement.

Output Schema

NameRequiredDescriptionDefault
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new context beyond them: the result includes associated refunds, refund mutation happens outside this tool, and the call requires the account:read permission. It does not cover behavior for an unknown or unauthorized payment_id, which keeps it from a 5.

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?

Two short sentences, front-loaded with the core action and followed by the read-only caveat and permission. The phrase "as on its receipt in the app" usefully frames the returned shape but is slightly informal; nothing is wasted overall.

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?

The tool is single-parameter, has an output schema so return values need no explanation, and the annotations cover the safety profile; the description adds the permission requirement and the refunds-in-result detail. Only error/not-found behavior is unmentioned, a minor gap for such a simple tool.

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?

With one parameter at 100% schema description coverage, the schema already documents payment_id, its pattern, and its provenance from read_statement. The description adds no further meaning to the parameter (no format hints, no lookup fallback), so the baseline of 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?

"Read one card payment and its refunds" states a specific verb and resource and scopes the result to a single payment, which separates it from list-style siblings such as read_statement. It stops short of explicitly naming which sibling to use instead for statements or account-level views, so it is clear but not fully differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear usage boundary: "Read-only; refunds are requested in the app," telling the agent this tool cannot initiate refunds and pointing the action elsewhere. The parameter note ("Payment ID from read_statement") also establishes the workflow ordering, though there is no explicit statement of when to prefer read_statement versus this tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources