Skip to main content
Glama
aibtcdev
by aibtcdev

execute_x402_endpoint

Execute x402 API endpoints with automatic payment handling. Call paid APIs from supported sources by specifying the endpoint and payment asset.

Instructions

Execute an x402 API endpoint. Payment is handled automatically.

Supported sources:

  • x402.aibtc.com (mainnet) / x402.aibtc.dev (testnet), the default: Use path like "/inference/openrouter/chat"

  • x402.biwas.xyz: Use apiUrl="https://x402.biwas.xyz" with path like "/api/pools/trending"

  • stx402.com: Use apiUrl="https://stx402.com" with path like "/registry/list"

  • aibtc.com (mainnet) / aibtc.dev (testnet): Use apiUrl="https://aibtc.com" with path like "/api/inbox/{address}"

  • Any x402-compatible URL: Use url parameter with full endpoint URL

Use list_x402_endpoints to discover available endpoints.

For aibtc.com inbox messages, use send_inbox_message_direct instead — it signs a standard sBTC transfer and settles directly through the x402 facilitator.

Tip: call earning_opportunities to see how to put your assets to work.

Input Schema

NameRequiredDescriptionDefault
urlNoFull endpoint URL (e.g., 'https://x402.aibtc.com/hashing/sha256'). Takes precedence over path+apiUrl.
dataNoRequest body for POST/PUT requests
pathNoAPI endpoint path (e.g., '/api/pools/trending'). Required if url is not provided.
assetNoWhich asset to pay with when the endpoint accepts several. Accepts a symbol ("sBTC", "STX") or a full contract identifier. Defaults to the first asset this client can pay. Only STX and sBTC can be signed; requesting any other asset returns an error listing what is accepted.
apiUrlNoAPI base URL: https:// plus the source host from list_x402_endpoints (x402.aibtc.com, x402.biwas.xyz, stx402.com, aibtc.com). Defaults to x402.aibtc.com (testnet x402.aibtc.dev).
methodNoHTTP methodGET
paramsNoQuery parameters for GET requests
autoApproveNoSkip cost probe and execute immediately. When false (default), probes first and returns cost info for paid endpoints. When true, executes atomically like before. Free endpoints always execute transparently.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.77.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations, so the description carries the burden, and it does disclose the single most important trait: payment is handled automatically, i.e. calling this spends funds. It also explains that autoApprove=false causes a cost probe before any charge. It leaves gaps on spending limits, whether a failed/suboptimal call still costs money, and refund behavior — material for a paid 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 core action and the payment disclosure, then a scannable bullet list of sources. Most sentences earn their place, though the closing 'Tip: call earning_opportunities' is promotional filler unrelated to invoking this tool.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter dispatcher with no output schema and no annotations, the description covers invocation well but says nothing about what comes back — the probed cost payload in the default mode versus the raw endpoint response in autoApprove mode is never described. That return-shape gap is the main incompleteness.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description adds genuine value beyond the schema by mapping each supported host to its required apiUrl+path combination and by marking x402.aibtc.com/dev as the default. Precedence of url over path+apiUrl is restated but not elaborated further.

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?

Specific verb+resource: 'Execute an x402 API endpoint,' extended with the crucial qualifier that payment is automated. It distinguishes itself from discovery siblings (list_x402_endpoints) and from the direct-transfer path (send_inbox_message_direct) without needing the 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?

Explicit routing rules per source host, an explicit exclusion for aibtc.com inbox messages pointing to send_inbox_message_direct, and a pointer to list_x402_endpoints for discovery. It stops short of a full alternative matrix — probe_x402_endpoint, a close sibling that inspects cost before paying, is never named.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools