Skip to main content
Glama

SpendPreflight

Read an x402 endpoint's observed health

check_endpoint
Read-onlyIdempotent

Use when you need cached public endpoint evidence. 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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "check_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesRequired. Exact public resource URL string, including path; no credentials. Example: https://api.example.com/data.
methodNoOptional. Advertised HTTP method string, not a new target request. Example: GET. Supply when cached methods are 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. Changed2 schema fields changed
    • changedInput schema / properties / method / description
      Previous value: -"Advertised method such as GET or POST; required if the URL is ambiguous"New value: +"Optional. Advertised HTTP method string, not a new target request. Example: GET. Supply when cached methods are ambiguous."
    • changedInput schema / properties / url / description
      Previous value: -"Exact public HTTP(S) URL already listed by Bazaar or x402scan"New value: +"Required. Exact public resource URL string, including path; no credentials. Example: https://api.example.com/data."
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"Example arguments: {\"url\":\"https://api.spendpreflight.com/v1/check\",\"method\":\"GET\"}"
  3. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and a closed-world scope, but the description adds substantive behavior: it never fetches the caller's URL or pays the endpoint, cached data can be stale or unknown, and unlisted/unavailable/stale lookups are not charged. It also warns that an unknown score means missing evidence rather than failure and that this is not a delivery or compliance guarantee, plus the payment-freeze rule on a 402. Docked one point because the payment-workflow section is procedural boilerplate rather than tool behavior.

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

Conciseness2/5

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

The useful first half is followed by pricing, a full x402 payment walkthrough, a duplicated minimal input example that restates the schema, and two illustrative output excerpts that overlap the output schema. Several sentences are defensive boilerplate ('Freshness/data/availability checks still apply', 'Illustrative output excerpt, not a live result') that dilute the front-loaded purpose.

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

Completeness4/5

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

For a two-parameter read tool with an output schema, the definition covers purpose, charging behavior, unknown-score semantics and routing to siblings, so an agent has what it needs to call it correctly. It over-delivers on payment mechanics and return-value examples the output schema already supplies, which is bulk rather than a completeness gap.

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 already documents both url and method, so the baseline is 3. The description adds real selection guidance beyond the schema: provide the exact URL including path, no credentials, and add method only when the URL has multiple advertised methods and cached methods are ambiguous.

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 states a specific verb and resource: return cached x402 endpoint observations with a transparent score, components and seven-day unpaid probe history for an already publicly listed URL. It also explicitly distinguishes itself from check_payee and preflight_payment. It falls short of 5 because the core purpose is buried under pricing and payment-procedure text.

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?

Explicitly names when to use it (endpoint history and price context before paying) and the alternatives with their conditions: check_payee for wallet/name screening, preflight_payment for an allow/hold/block decision. It also states the required input condition (exact resource URL, method when multiple methods are advertised).

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