Skip to main content
Glama

Audit x402 Endpoint

audit_x402_endpoint
Read-onlyIdempotent

Purchase a deep, deterministic audit of payment schema, discovery metadata, redirects, CORS, cache, and operational signals. Returns HTTP 402 until the MCP client supplies a valid payment for this call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
methodNoGET
resource_urlYesPublic HTTPS x402 resource to inspect without payment credentials.
max_price_usdNo
expected_networkNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
corsYes
scoreYes
checksYes
issuesYes
paymentYes
profileYes
decisionYes
evidenceYes
resourceYes
discoveryYes
expiresAtYes
requestIdYes
observedAtYes
operationalYes
claimBoundaryYes

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive behavior. The description adds the non-obvious paywall behavior: 'Returns HTTP 402 until the MCP client supplies a valid payment for this call.' This is meaningful context beyond the annotations, though the payment mechanics are not detailed.

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?

Two sentences with no filler; the operational 402 behavior is stated crisply. The first sentence is a dense list but still readable and front-loaded.

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?

The description covers core purpose and the critical paywall behavior, and the output schema/annotations carry return and safety information. However, it lacks usage guidance and parameter explanations, so it is not fully complete for selecting and invoking the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25% (only resource_url is described), and the description does not clarify method, max_price_usd, or expected_network. The audit-scope list does not map to these parameters, so the low coverage is not compensated.

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 specifies a concrete action (purchase/audit) on a named resource (x402 endpoint) and enumerates the audited areas: payment schema, discovery metadata, redirects, CORS, cache, and operational signals. However, it does not explicitly contrast with inspect_x402_endpoint or order_x402_remediation, so sibling differentiation is left implicit.

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

Usage Guidelines2/5

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

No guidance is given for when to prefer audit_x402_endpoint over inspect_x402_endpoint or order_x402_remediation. The only usage-related note is the payment gating condition, which is operational rather than a selection criterion.

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

A3.8/5.0
Disambiguation5/5

Each tool has a clearly distinct role: inspect is free and read-only, audit is a paid deep diagnostic, and order_remediation is a separate purchase flow after an audit. There is no meaningful overlap that would cause an agent to select the wrong tool.

Naming Consistency5/5

All three tools follow a consistent verb_x402_object pattern: audit_x402_endpoint, inspect_x402_endpoint, and order_x402_remediation. The verbs clearly indicate the action and the naming convention is uniform.

Tool Count5/5

Three tools is an appropriate, focused scope for an x402 preflight server. Each tool represents a distinct stage in the workflow without unnecessary duplication or bloat.

Completeness4/5

The core workflow is covered: inspect before spending, audit for a deep check, and order remediation after a failed audit. Minor gaps exist around order status or remediation fulfillment, but the essential preflight lifecycle is complete.