Skip to main content
Glama

buy_prepared_artifact

Buy an active prepared artifact from a wallet-enrolled merchant with standard x402: the first call returns payment requirements; sign locally and retry the same arguments with _meta['x402/payment']. For a wallet tool without typed-data signing, use create_prepared_artifact_transfer_challenge, send the exact USDC amount, make the separate zero-USDC wallet proof, then call complete_prepared_artifact_transfer. Reuse the same identifiers and payment proof after timeouts.

Input Schema

NameRequiredDescriptionDefault
offerIdYes
merchantIdYes
idempotencyKeyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the two-phase payment-requirements/retry pattern, the additional _meta['x402/payment'] argument that is not even in the input schema, the exact-USDC-amount constraint, and the timeout-recovery rule to reuse the same identifiers and payment proof. It stops short of describing irreversibility, refund behavior, or what a successful purchase returns.

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 sentences, front-loaded with the verb and resource, then the primary flow, then the fallback flow. No filler, though the second sentence is long and densely packed with procedural steps that could be split for easier parsing.

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?

No output schema and no annotations, so the description must supply behavioral context, which it largely does for a payment-mutating tool: protocol, retry semantics, fallback path, and timeout idempotency. Missing pieces are the meaning of the required identifiers and any statement about outcome or reversibility of the purchase.

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 had to compensate, and it only partly does: it explains the _meta['x402/payment'] argument and the requirement to reuse 'the same identifiers' across timeout retries, which implicitly anchors idempotencyKey. It never distinguishes merchantId from offerId or explains what each selects, leaving the three schema parameters semantically thin.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Buy) and resource (active prepared artifact) with a scope qualifier (wallet-enrolled merchant) and names the x402 payment protocol. An agent can distinguish this from complete_prepared_artifact_transfer and create_prepared_artifact_transfer_challenge, which appear in the description itself as the manual-path steps.

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?

Gives two explicit paths: the standard x402 flow (first call returns payment requirements, sign locally, retry same args with _meta['x402/payment']) and the fallback for wallets that cannot do typed-data signing (create_prepared_artifact_transfer_challenge → send exact USDC → zero-USDC wallet proof → complete_prepared_artifact_transfer). The selection condition between the two paths is stated outright, and sibling tools are named as the alternative.

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