Skip to main content
Glama

onyx_verify_explain

Diagnose a failing x402 v2 /verify. Decodes a captured X-PAYMENT header, runs 10 rules (decode, schema, network/asset/payTo match, value sufficiency, EIP-3009 timing, signature shape, scheme) against expected paymentRequirements, and returns the FIRST failing rule with a plain-English fix. Catches the common case where the facilitator returns bare HTTP 402 (no body) because of JWT or schema fail upstream of the verifier. Stdlib-only, no install, no network. (price: $0 USDC, tier: free)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
now_unixNoOverride current unix time for replay/CI use. Defaults to now.
x_payment_b64NoBase64-encoded X-PAYMENT (v2 PAYMENT-SIGNATURE) header value. Optional if payment_payload provided.
payment_payloadNoDecoded payment payload dict. Use this OR x_payment_b64.
payment_requirementsYesExpected paymentRequirements from the 402 challenge ({scheme, network, payTo, asset, maxAmountRequired, maxTimeoutSeconds, ...}).

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the behavioral disclosure burden. It reveals the internal process (decode header, run 10 rules), the output behavior (first failing rule with fix), and operational constraints (stdlib-only, no network, no install, zero cost). This goes well beyond a minimal statement and gives the agent confidence about side effects and limitations.

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

Conciseness5/5

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

The description is a dense but well-structured paragraph. It front-loads the core action, lists the rules compactly, and includes the most critical edge case. The parenthetical about price/tier is minor noise but does not detract from the overall efficiency. Every sentence adds value.

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?

The description covers the tool's purpose, input, process, output, and an edge case, which is comprehensive for a diagnostic tool with no output schema. It leaves a minor ambiguity about what happens when all 10 rules pass (no failing rule), but overall it gives an agent sufficient context to decide when and how to invoke it.

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%, so the baseline is 3. The description enhances understanding by linking the X-PAYMENT header to x_payment_b64 and paymentRequirements to the rules, but it does not add extra per-parameter semantics beyond the schema. It neither compensates nor detracts, hence a solid 3.

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 the specific verb-resource pairing 'Diagnose a failing x402 v2 /verify', which precisely states what the tool does. It further distinguishes itself from sibling tools by detailing the rule-based diagnosis and the output of 'FIRST failing rule with a plain-English fix', making its purpose unambiguous and differentiated.

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 clearly states when to use the tool: to diagnose a failing /verify call, especially when a bare HTTP 402 is returned. It does not explicitly mention alternatives or when not to use it, but the scenario-driven guidance is clear and actionable, meriting a score above the 'implied only' level.

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.