Skip to main content
Glama

x402-trust-audit

Vet an x402 counterparty before settling USDC: scores the advertised payment requirements AND (when supplied) the EIP-3009 authorization you are about to sign. Returns a machine-enforceable trust verdict (per-entry scores, coverage-honest trustScore, spend-constraint + tamper-evident fingerprint) for buyer agents and wallet/spend-policy layers. No endpoint fetch. [security; up to 200c/call]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNoOptional free-form context.
expectedNoOptional caller expectations.
endpointUrlNoResource URL being paid (context only; never fetched).
spendPolicyNoOptional buyer spend policy to evaluate against and to pin facilitators.
paymentPayloadNoThe UNSIGNED EIP-3009 authorization the buyer is about to sign: { authorization|message: {from,to,value,validAfter,validBefore,nonce}, domain: {name,version,chainId,verifyingContract} }. Lets the audit bind the menu to the actual charge (server-enforced to/value/verifyingContract/chainId). Omit to vet requirements only - but then the verdict is never auto-settle-safe.
serverMetadataNoOptional server metadata the caller already holds (context only; not fetched).
paymentRequirementsYesThe x402 payment requirements from the counterparty: the 402 `accepts` array, or a single object.
selectedOptionIndexNoIndex in the accepts array the buyer intends to settle (default 0). The verdict is scoped to it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Without annotations, the description carries the full burden. It discloses that the tool does not fetch endpoints, returns a structured verdict, and has a cost. It remains silent on error conditions, permissions, and side effects, but covers key behavioral traits sufficiently.

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 information-dense but well-structured, opening with the main purpose. It could be slightly more concise (e.g., 'per-entry scores...' details), but every sentence adds value. Front-loaded with key actions and constraints.

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?

Given 8 parameters and no output schema, the description explains parameter roles but lacks detail on the exact output format (beyond 'per-entry scores...'), error handling, and edge cases. The tool's complexity demands more thorough completeness for optimal agent use.

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% (baseline 3). The description adds meaning by explaining that `paymentPayload` is an unsigned EIP-3009 authorization, `endpointUrl` is never fetched, and `selectedOptionIndex` scopes the verdict. This goes beyond the schema's generic descriptions.

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 clearly states the tool's action ('Vet an x402 counterparty before settling USDC'), resource (payment requirements and EIP-3009 authorization), and output (trust verdict). It is distinct from siblings like secure-code-review or secret-scan, which focus on code security, not trust evaluation.

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?

The description specifies the primary use case (before settling USDC) and includes contextual clues like 'security; up to 200c/call' and 'No endpoint fetch'. However, it does not explicitly state when not to use the tool or mention alternative approaches, leaving some room for ambiguity.

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