Skip to main content
Glama

get_x402_payment_challenge

Fetch the Base L2 x402 EIP-3009 payment challenge for a paid unlock path.

Call when a teaser tool returned an `unlock` block and you need the EIP-712
domain / amount / payTo to build an X-PAYMENT header. Allowed `product` values:
`signals` (0.01 USDC → /api/v1/monetized) or `edgar-m-and-a` (0.025 USDC →
/api/v1/monetized/edgar-m-and-a). Read-only / idempotent; does not settle on-chain.
After signing TransferWithAuthorization, call get_monetized_unlock_instructions
or HTTP GET the unlock path with header X-PAYMENT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
productNoedgar-m-and-a

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses 'Read-only / idempotent; does not settle on-chain,' which prevents the agent from expecting a mutation. It also documents allowed product values and their pricing/endpoints. Rate limits and error behavior are not covered, but the key safety profile is present.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but efficient. Each sentence adds a distinct piece of information: what it fetches, when to call it, allowed values, safety profile, and next step. There is no fluff or repetition.

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?

An output schema exists, so return-value details are covered elsewhere. The description explains why to call the tool, what the result is used for (building an X-PAYMENT header), and the follow-up action. A minor gap is authentication/prerequisites, but it is not essential for fetching a challenge.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The only parameter, product, has zero schema description coverage. The description fully compensates by listing allowed values ('signals', 'edgar-m-and-a'), their exact USDC amounts, and the corresponding API paths. This is precisely the semantic detail an agent needs to invoke the tool correctly.

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?

The description uses a specific verb 'Fetch' and names a concrete resource: 'Base L2 x402 EIP-3009 payment challenge'. It clearly scopes the tool to the paid unlock path and distinguishes it from siblings by describing its role in the flow and naming get_monetized_unlock_instructions as the follow-up.

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?

It explicitly states the trigger condition: 'Call when a teaser tool returned an unlock block and you need the EIP-712 domain / amount / payTo to build an X-PAYMENT header.' It also tells the agent what to do after signing. It does not enumerate exclusions for all sibling tools, but the trigger context is clear enough.

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