Skip to main content
Glama

Call x402 API

call_x402_api

PAID inbound $0.01 USDC, then pay and call one specific Bazaar resource by tool_name or full URL (Treasury settles upstream). Prefer over route_and_call when you already know which API to hit. Do not use for open-ended tasks — use route_and_call or quote_route first. Discover names via search_bazaar or list_discovered_apis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoOptional JSON body
queryNoOptional query parameters
tool_name_or_urlYesRegistered tool_name or full upstream resource URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the disclosure burden. It clearly discloses the paid nature ($0.01 USDC inbound, Treasury settlement upstream) and that this is an execution call to an external resource. It does not detail possible side effects or return behavior, but the cost factor and direct-call semantics are meaningful beyond the schema.

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?

Three tight sentences packed with essential information: cost, action, differentiation, and discovery path. No filler or redundancy; key constraints are front-loaded.

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 paid resource-calling tool with no annotations and no output schema, the description covers selection, invocation, cost, and discovery. It could mention error/refund behavior or idempotency, but the provided context is sufficient for an agent to decide and call correctly in most cases.

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 coverage is 100%, so the schema already documents all three parameters. The description repeats that tool_name_or_url can be a registered tool_name or full URL, which is already in the schema, and adds no further semantics for body or query. Baseline 3 is appropriate.

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 clear action (pay for and call a specific Bazaar resource) with explicit input modes (tool_name or full URL). It distinguishes itself from route_and_call by noting when it is preferred, making its purpose unambiguous.

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?

Provides explicit when-to-use (when you already know which API to hit), when-not-to-use (open-ended tasks), and names alternatives (route_and_call, quote_route). Also tells the user how to discover valid names via search_bazaar or list_discovered_apis.

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