Skip to main content
Glama

Pay for a photo book

pay_book
DestructiveIdempotent

Buy the exact quoted book using native MPP. Only after the buyer approves its total and delivery address. Supply quoteId and bookToken. A payment challenge is returned through JSON-RPC; retry the same call with the authorized payment credential in _meta. This charges the buyer.

Input Schema

NameRequiredDescriptionDefault
quoteIdYes
bookTokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (destructive, idempotent, non-readonly), the description discloses the two-step payment challenge: a challenge is returned via JSON-RPC and the same call is retried with an authorized credential in _meta. It also states plainly that the call charges the buyer, so the agent understands the irreversible financial effect and the retry pattern.

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?

Four short sentences, front-loaded with the action and the approval precondition, then the credential-retry mechanic. No filler, though 'native MPP' consumes space without informing.

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?

With no output schema, the description still covers the key return behavior (payment challenge) and the retry protocol, which is what an agent needs to complete the flow. It omits what a successful final response contains and any quote-expiry or amount-verification caveats.

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 0%, so the description carries the burden; it names both required parameters and implies their origin via 'the exact quoted book', but never explains what a bookToken is versus a quoteId or that both are 64-hex digests. It names the parameters without adding meaning.

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 + resource ('Buy the exact quoted book') and ties it to a prior quote via the required quoteId/bookToken, which separates it from siblings like create_payment_quote and create_checkout. The phrase 'native MPP' is unexplained jargon that dilutes an otherwise sharp purpose.

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?

Gives a concrete precondition — 'Only after the buyer approves its total and delivery address' — which is real routing guidance an agent can act on. It does not explicitly contrast with create_checkout, so the alternative-selection guidance is implied rather than stated.

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