Skip to main content
Glama

Buy a Flash Report (paid, x402)

buy_flash_audit

Paid over x402 in USDC on Base. Without a payment in _meta["x402/payment"] it returns the PaymentRequired document (isError), followed by how a person without a wallet can buy the same report in the web store. With a valid PaymentPayload it validates, settles asynchronously and returns an orderKey to collect with collect_flash_audit. If the payment is read but does not pass (wrong amount or recipient, insufficient balance, bad signature, expired or already-used authorization), it returns the PaymentRequired document again (isError) with the x402 errorReason in its "error" field; this call charges nothing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNoReport language. Defaults to "en".
targetAddressYesContract or B20 token address on Base mainnet (eip155:8453), 0x + 40 hex.

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?

Goes well beyond the annotations by disclosing the full payment lifecycle: async settlement, an orderKey returned for later collection, and the exact failure modes (wrong amount/recipient, insufficient balance, bad signature, expired or reused authorization). It explicitly reassures that a failed validation charges nothing, which is high-value context for a non-idempotent purchase tool.

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-loaded with the payment mechanism and then the outcomes, with no filler sentences. The failure-mode sentence is dense and run-on, but every clause conveys a distinct behavior the agent 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 still specifies both return shapes (PaymentRequired document vs orderKey) and the error envelope including where errorReason appears. For a complex, money-moving tool, nothing an agent needs to invoke it correctly is missing.

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 100% and both parameters are fully documented in the schema (address pattern, language enum with default), so the schema carries the semantics. The description adds no parameter-level detail beyond the schema, which is the expected baseline when coverage is complete.

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 (buy a flash report), plus the payment rail (x402 in USDC on Base), so the agent knows exactly what this call does. It distinguishes itself from siblings by explicitly naming collect_flash_audit as the downstream step and describing the free web-store alternative.

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 clear context for when this tool applies: it must be paid via _meta["x402/payment"], and without a payment it returns the PaymentRequired document. It also routes the agent to collect_flash_audit for retrieval, though it does not explicitly contrast with the sibling buy_contract_data or state when to prefer a free check instead.

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