Skip to main content
Glama

pay_preflight

Can an agent pay at this host? Rails, endpoint, price, freshness. Unpaid calls return HTTP 402 at $0.001 USDC. Same resource URL as the REST route.

Input Schema

NameRequiredDescriptionDefault
domainYesPublic hostname without a scheme. A scheme, port, path, and leading www. are stripped if present. After normalize: two or more DNS labels, each [a-z0-9] with optional interior hyphens (max 63 chars), total length at most 253. Empty input, literal IPs, and bare labels are rejected.
intentNoPayment intent filter. Omit or send empty to default to any. Must be checkout, api, or any.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / domain / description
      Added value: +"Public hostname without a scheme. A scheme, port, path, and leading www. are stripped if present. After normalize: two or more DNS labels, each [a-z0-9] with optional interior hyphens (max 63 chars), total length at most 253. Empty input, literal IPs, and bare labels are rejected."
    • addedInput schema / properties / intent / description
      Added value: +"Payment intent filter. Omit or send empty to default to any. Must be checkout, api, or any."
  2. 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 that unpaid calls return HTTP 402 at $0.001 USDC and that the resource URL matches the REST route. It omits other traits an agent would want, such as auth requirements, caching/refresh behavior, and what a successful paid response contains.

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?

Very short and front-loaded, with the core question first and the pricing/error behavior immediately after. The telegraphic fragment 'Rails, endpoint, price, freshness' is slightly cryptic but efficient.

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, so the description is responsible for return values; it names four fields but does not explain what 'rails' or 'freshness' actually contain, leaving the response shape under-specified for a tool whose output is its main value.

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%, with detailed normalization rules for 'domain' and an enum for 'intent', so the schema does the heavy lifting. The description adds no parameter meaning beyond the schema, which is the expected baseline 3.

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 opening question 'Can an agent pay at this host?' plus the return list (rails, endpoint, price, freshness) makes the resource and result of the check clear. It does not, however, distinguish itself from near-neighbors like payto_check, find_payable, or participation_check, which an agent must disambiguate on its own.

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?

The preflight framing implies it is called before attempting payment, which is useful context, but no alternative tool is named and there is no explicit when-to-use vs when-not guidance against the several similarly named payment/host siblings.

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