Skip to main content
Glama

A-Pay Protocol

apay_request

Probe and automatically pay HTTP 402 crypto micropayments on Base Layer 2 with USDC or $APAY within pre-configured budget limits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe target endpoint URL
methodNoGET
headersNoOptional additional HTTP headers
json_bodyNoOptional JSON request body

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/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 behavioral burden. It usefully discloses the payment mechanism, currencies (USDC/$APAY), chain (Base L2), and the budget-limit guardrail. It omits what happens when the budget is exceeded, how non-402 responses are handled, wallet/auth prerequisites, and whether payments are irreversible — all material for a tool that spends funds.

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?

A single dense sentence with no filler, and the core action ('probe and automatically pay') is front-loaded before the qualifying constraints. Efficient, though the jargon load makes it slightly harder to parse than a shorter phrasing would be.

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 a tool that irreversibly spends crypto, with no output schema and no annotations, the description should explain the response shape and failure modes (budget exhaustion, failed payment). It covers the mechanism but leaves the agent guessing about outcomes, so it is only adequate.

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 75%, so the schema already documents url, headers, and json_body, and the method enum is self-describing. The description adds no parameter-level meaning (e.g., how headers interact with the payment flow, or the default method), so it does not compensate for the undocumented method parameter. Baseline 3 is appropriate.

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?

The description names a specific compound verb+resource: it probes an endpoint and automatically pays HTTP 402 crypto micropayments on Base L2. That is far more specific than the sibling names suggest and tells an agent this is the pay-and-fetch tool. It stops short of distinguishing itself from apay_inspect_endpoint, which sounds like the non-paying probe counterpart.

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

Usage Guidelines3/5

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

Usage is only implied: the mention of 'pre-configured budget limits' hints that apay_set_budget must run first, but there is no explicit when-to-use, when-not-to-use, or comparison against apay_inspect_endpoint as the dry-run alternative. An agent must infer the calling context.

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