Skip to main content
Glama

apay_request

Access paid APIs without manual payment: send HTTP requests; for 402 responses, automatically sign cryptographic payments within budget limits to unlock data.

Instructions

Make an HTTP request (GET, POST, etc.) to any API or website. If the endpoint returns an HTTP 402 Payment Required challenge, A-Pay automatically signs the cryptographic payment authorization within your budget limits and unlocks the data in <25ms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesTarget endpoint URL to fetch or query
methodNoHTTP request method (default: GET)GET
headersNoOptional additional HTTP headers
json_bodyNoOptional JSON payload for POST/PUT requests

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful behavior: it signs a cryptographic payment authorization, respects budget limits, and responds in <25ms. However, it omits what happens when the budget is exceeded, whether spending is idempotent/retryable, and how errors surface — notable gaps for a tool that can spend money.

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?

Two sentences, front-loaded with the primary action and the unusual payment behavior. Efficient overall, though the '<25ms' latency claim is promotional rather than decision-relevant.

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?

There is no output schema and no annotations, so the description must carry the full context. It explains the headline feature (automatic 402 payment) but leaves out budget-exceeded behavior, error semantics, and return shape — enough is missing that an agent cannot fully predict outcomes.

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%, so url, method, headers, and json_body are already documented in the schema. The description adds no format, constraint, or usage nuance beyond what the schema provides, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Make an HTTP request ... to any API or website') and immediately highlights the differentiating behavior: automatic HTTP 402 payment authorization. It does not explicitly name or contrast itself with siblings like apay_inspect_endpoint, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus apay_inspect_endpoint, apay_set_budget, or apay_get_balance. The only conditional language ('If the endpoint returns an HTTP 402...') describes internal behavior, not when an agent should select this tool.

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