Skip to main content
Glama

Buy a knowledge unit with USDC (x402)

buy_knowledge
Destructive

Spends money: buys the full body of a published unit for USDC over x402 — for clients that pay per call from a wallet and have no WITAN key (with a key, get_knowledge_full reads it without paying). Called without a payment it answers with the price as an x402 PaymentRequired (isError, structuredContent); an x402-capable client signs one of its accepts and calls again with _meta["x402/payment"]. Call it only when the user approved the purchase. The public service settles test USDC on Base Sepolia (no value): get it free at https://faucet.circle.com (choose Base Sepolia); no ETH is needed, the facilitator submits the payment and pays the gas. More: https://witan.markets/developers/docs#test-usdc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations flag destructive/not-readOnly/openWorld, but the description adds the crucial mechanics: the first call returns an x402 PaymentRequired with a price and accepts list, the client signs and re-calls with _meta["x402/payment"], and settlement is test USDC on Base Sepolia with the facilitator paying gas. That is real money-flow context the annotations cannot convey.

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?

Front-loads the money-spending warning, then the payment flow, then the approval gate, then testnet logistics — a sensible order with no filler. It is dense and slightly long, but nearly every clause carries operational value the caller needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 takes on the return-shape burden and does so: it explains the PaymentRequired/isError response and the re-call with payment metadata. Combined with the testnet/faucet guidance, an agent has everything needed to call it correctly.

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?

There is a single required id parameter with 0% schema description coverage, so the schema does not explain it. The description implies the id identifies 'a published unit' but never states the format (UUID) or that it must reference a published unit, leaving the agent to infer it. A 3 is the baseline for one obvious parameter.

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 and resource ('buys the full body of a published unit for USDC over x402') and immediately scopes it to a particular client type (pay-per-call wallets with no WITAN key). It names the sibling alternative get_knowledge_full and the condition that selects it, so the agent can distinguish it without opening either schema.

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 an explicit gate ('Call it only when the user approved the purchase') and contrasts with get_knowledge_full for key-holders. It does not mention the sibling buy_knowledge_with_credits, which an agent choosing a purchase path would reasonably consider, so it falls short of full alternative coverage.

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.