Skip to main content
Glama

x402-payment-diagnostic

Diagnose an x402 Base USDC payment challenge against an explicitly authorized payee allowlist and spending cap. Never signs or buys. Costs $0.001 USDC on Base via x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
challengeYes
allowed_payeesYes
max_atomic_usdcYes
supported_schemesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two valuable traits: it never signs or buys (safety profile) and it costs $0.001 USDC on Base via x402 (cost/rate context). It does not disclose what a successful diagnosis returns, what a failing diagnosis looks like, or how the challenge is evaluated.

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?

Two tight sentences with no filler, front-loading the core action and immediately following with the safety and cost constraints. Every clause earns its place.

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?

For a 4-parameter, nested-object, no-annotation, no-output-schema tool, the description is adequate but incomplete: it omits the meaning of supported_schemes, says nothing about the return shape or failure behavior, and offers no usage routing. The safety and cost disclosure is the strongest part.

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 0%, so the description must compensate. It adds meaning for three of the four parameters (challenge, allowed_payees as 'payee allowlist', max_atomic_usdc as 'spending cap'), but leaves supported_schemes completely unexplained and gives no format hints such as atomic units for the cap.

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?

States a specific verb (Diagnose) and a well-scoped resource (x402 Base USDC payment challenge) and names the two guardrails it evaluates (payee allowlist and spending cap). It is clearly a diagnostic, distinguishable from the payment-execution flavor of siblings, but it never explicitly names x402-payment-intent-assurance, so differentiation is implied rather than stated.

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?

The description hints at a pre-payment validation role via 'Never signs or buys', but it gives no explicit when-to-use, when-not-to-use, or alternative tool routing against x402-payment-intent-assurance. The agent must infer the workflow position on its own.

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.