Skip to main content
Glama

SpendPreflight

Read an x402 endpoint's observed health

check_endpoint
Read-onlyIdempotent

Cached x402 endpoint observations, operated by SpendPreflight. Returns a transparent score (or unknown), its components and seven-day unpaid probe history for an already publicly listed URL. Never fetches the caller's URL or pays the endpoint. Unlisted, unavailable or stale data is not charged. This is not a paid-delivery or compliance guarantee. Provide the exact resource URL; add method when the URL has multiple advertised methods. Use for endpoint history and price context before paying. Use check_payee for wallet/name screening or preflight_payment for an allow/hold/block decision. Price $0.005 per cached lookup (shared free trial first). An unknown score means missing evidence; repeated paid calls may incur another charge. Price: 0.005 USDC. Minimal input example: {"url":"https://api.spendpreflight.com/v1/check","method":"GET"}. Illustrative output excerpt: {"score":null,"components":{},"history":[],"disclaimer":"An unknown score is missing evidence, not an endpoint failure."}. Illustrative output excerpt, not a live result, signature, approval or guarantee. Freshness/data/availability checks still apply. How to pay (MCP): First use the existing shared allowance of 3 eligible calls per IP per UTC day, without payment metadata. This is shared with eligible HTTP trials, not a new allowance. Use an x402-capable MCP client. A generic MCP connector without payment support cannot complete a paid continuation. On payment required, STOP. Inspect the exact accepts amount, asset, network and payTo; obtain explicit wallet/budget approval before continuing. Only after approval, let the configured x402 MCP client attach its signed payload in _meta["x402/payment"] and retry the same tools/call arguments. Never send a separate USDC transfer or paste keys into tool arguments. Never silently fall back from free access to payment. If a signed attempt has an unknown outcome, inspect that authorization/transaction; do not create another automatically.

Input Schema

NameRequiredDescriptionDefault
urlYesExact public HTTP(S) URL already listed by Bazaar or x402scan
methodNoAdvertised method such as GET or POST; required if the URL is ambiguous

Output Schema

NameRequiredDescriptionDefault
urlYes
scoreYes
methodYes
historyYes
sourcesYes
categoryYes
operatorYes
assessmentYes
componentsYes
data_as_ofYes
disclaimerYes
methodologyYes
observed_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"Example arguments: {\"url\":\"https://api.spendpreflight.com/v1/check\",\"method\":\"GET\"}"
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare readOnly/openWorld=false/idempotent, and the description adds substantial non-redundant behavior: no fetching of the caller's URL, no payment to the endpoint, no charge for unlisted/unavailable/stale data, $0.005 per cached lookup, a shared 3-call/day free trial, and the exact payment continuation protocol with 'stop and get approval' semantics. It also pre-empts a likely misinterpretation by explaining that an unknown score means missing evidence, not endpoint failure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose and sibling routing are front-loaded and effective, but the body is heavily padded: disclaimers repeat ('not a guarantee', 'illustrative output excerpt, not a live result...', 'freshness/data/availability checks still apply'), and the multi-sentence payment walkthrough dominates the tool's description. Useful information is present but buried in boilerplate that could be trimmed.

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

Completeness5/5

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

For a cached lookup with an output schema and full annotation coverage, the description covers everything an agent needs: input exactness, pricing and free-tier limits, unknown-score semantics, scope exclusions, and safe payment handling. Nothing required to call it correctly or interpret a null result is missing.

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% and both parameters are documented, so the baseline is 3; the description slightly exceeds it by reinforcing that the URL must be exact and already public, and by supplying a concrete minimal input example. It does not add new format or syntax detail beyond what the schema already says about the method parameter.

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 specific resource and scope: cached x402 endpoint observations returning a transparent score, its components, and seven-day unpaid probe history for an already-listed URL. It explicitly distinguishes itself from siblings by naming check_payee and preflight_payment and stating what each is for, so an agent can route without opening schemas.

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?

Explicit when-to-use ('endpoint history and price context before paying'), explicit alternatives with conditions ('check_payee for wallet/name screening or preflight_payment for an allow/hold/block decision'), and a parameter-level usage rule ('add method when the URL has multiple advertised methods'). Negative guidance is also present: it never fetches the caller's URL and is not a compliance guarantee.

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