Skip to main content
Glama

pay_work_ticket_quote

Pay the buyer-accepted quote directly to the seller with x402 Base USDC. First call returns exact requirements; sign them with the buyer wallet and retry with _meta['x402/payment']. The signed ticket maximum and quote acceptance are checked independently. Keep idempotencyKey and the same payment authorization for recovery.

Input Schema

NameRequiredDescriptionDefault
ticketIdYes
idempotencyKeyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the safety burden and does well: it discloses that real USDC moves on Base, that the call is two-phase (first call is a requirements fetch, not a charge), and that ticket-maximum and quote-acceptance checks are independent. It does not state irreversibility of the transfer or what happens if signing fails after the first call, 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?

Four tight sentences with the core action and payment rail front-loaded, followed by the call sequence and recovery note. No filler; the only mild cost is that the two-step flow and the recovery rule are compressed into single clauses.

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 fund-moving tool with zero annotations, no output schema, and 0% schema coverage, this covers the critical ground: payment rail, two-phase invocation, independent checks, and idempotent recovery. It stops short of describing failure outcomes or what a successful payment returns, which matters with no output 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 0% and neither parameter is documented in the schema. The description fully explains idempotencyKey's role in recovery, and even surfaces an out-of-schema parameter (_meta['x402/payment']), but ticketId's meaning and UUID format are left implicit. Partial compensation only.

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+resource+mechanism: "Pay the buyer-accepted quote directly to the seller with x402 Base USDC." The word "accepted" implicitly separates this from the acceptance step (accept_work_ticket_quote) and from the generic transfer tools (buy_prepared_artifact), but no sibling is named explicitly, so it stops short of a 5.

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

Usage Guidelines5/5

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

It gives the exact call sequence: first call returns payment requirements, sign them with the buyer wallet, then retry with _meta['x402/payment']. That is a concrete when/how path an agent cannot infer from the schema, and it adds the recovery rule (keep idempotencyKey and the same authorization).

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