Skip to main content
Glama

onyx_preflight

Preflight safety check for an x402-gated endpoint, BEFORE you pay it. Probes the URL live (~8s timeout), confirms it actually speaks x402 (a proper HTTP 402 with a parseable payment-requirements body — not a decoy demanding payment in prose), parses the advertised price to human USDC, sanity-checks the payTo address (0x format + EIP-55 checksum) and network (mainnet vs silently-testnet), and flags dead/cold/zombie endpoints and absurd price traps. Returns one signed verdict — OK, WARN, or AVOID — plus every disclosed flag behind it. Sign facts, not judgments: each flag traces to a checkable rule, not an opaque trust score. (price: $0.02 USDC, tier: metered)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe x402-gated endpoint to preflight (http:// or https://).
timeout_secondsNoProbe timeout in seconds. Clamped to [2, 15].

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries full burden and excels. It discloses the live probe, ~8s timeout, expected HTTP 402 response with parseable payment body, price conversion to USDC, address format/checksum checks, network mainnet vs testnet, flagging of dead/cold/zombie endpoints and price traps, and the signed verdict format. It even explains the 'sign facts, not judgments' principle. No annotation contradiction.

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?

The description is long but information-dense and front-loaded with the main purpose in the first clause. Each subsequent detail (checks, return format, pricing) serves a functional role. The 'Sign facts, not judgments' phrase is a bit stylistic but adds transparency. It earns its place, though somewhat verbose compared to the leanest examples.

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?

Given the tool's complexity (multiple checks, output verdict, safety-critical), the description is remarkably complete. It explains the return value (OK/WARN/AVOID plus flags), covers edge cases (decoy, dead endpoints, price traps), includes pricing, and clarifies the verification principles. No output schema exists, so the description must explain return values, which it does.

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 100%, so baseline is 3. The description mentions the timeout ('~8s timeout') which aligns with the timeout_seconds parameter and default, but does not add substantial meaning beyond the schema. The url parameter is self-evident. No additional syntax or format details are provided that would elevate above baseline.

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?

The description opens with 'Preflight safety check for an x402-gated endpoint, BEFORE you pay it,' which is a specific verb ('preflight'), a clear resource (x402-gated endpoint), and a clear scope (safety check before payment). It distinguishes from siblings by focusing on x402 endpoints and payment preflight, not generic transactions or payments.

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

Usage Guidelines4/5

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

It provides clear context: use this tool before paying an x402 endpoint. It explicitly says 'BEFORE you pay it,' which tells the agent when to invoke it. It does not name alternative tools or exclusions, but the x402-specific scope and the timing are sufficient guidance for this 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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool targets a specific aspect of security or verification, from agent liveness to token risk to transaction preflight, with clear descriptions that prevent confusion. Even similar-sounding tools like tx_guard and tx_preflight cover distinct scenarios.

Naming Consistency5/5

All tools follow a consistent 'onyx_<descriptive_name>' pattern using snake_case, making it easy to infer purpose from the name. No mixing of styles or conventions.

Tool Count4/5

23 tools is on the higher end but justified by the broad scope of security services offered, covering many distinct verification needs without being excessive.

Completeness5/5

The tool set provides a comprehensive surface for agent security, including pre-payment checks, smart contract audits, token risk, merchant verification, and identity attestation. No obvious missing operations for the stated purpose.