Skip to main content
Glama

x402-integration-audit

x402 Integration White-Box Audit: AI white-box audit of your x402 payment integration source (JS/Py/Go) against the x402 Payment Security Checklist v2 — payment verification, replay, delivery races, allowance, custody, denial. status=needs-confirmation findings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoCode to process
langNoLang to process
sourceNoSource to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / code
      Added value: +{
      +  "description": "Code to process",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / lang
      Added value: +{
      +  "description": "Lang to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "Source to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the disclosure burden. It does add real value: it enumerates the checklist dimensions checked (payment verification, replay, delivery races, allowance, custody, denial) and notes that findings carry a status=needs-confirmation flag. However, it says nothing about read-only/safe nature, permissions, limits, or failure modes.

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?

A single densely-packed sentence, front-loaded with the operation and resource. Every clause (language set, checklist, dimensions, status flag) earns its place, with no filler.

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?

There is no output schema, so the return format need not be explained, and the description does hint at the 'status=needs-confirmation' finding format. Still, for a 3-parameter analysis tool with ambiguous inputs, the definition leaves the agent unsure how 'code' vs 'source' should be populated.

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 nominally 100%, so the baseline is 3. But the schema descriptions ('Code to process', 'Lang to process', 'Source to process') are tautological, and the description does not resolve the apparent redundancy/ambiguity between 'code' and 'source' or specify accepted lang values beyond JS/Py/Go — so it adds little beyond the schema.

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 gives a precise verb and resource: an AI white-box audit of x402 payment integration source in JS/Py/Go, scoped against a named checklist. This is far more specific than the generic sibling set, though it never explicitly names a competing tool (e.g. x402-payment-audit) to disambiguate.

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

Usage Guidelines3/5

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

Usage is only implied by the resource named: you supply payment-integration source and get an audit. There is no when-to-use/when-not statement, no prerequisite (e.g. code must actually use x402), and no pointer to alternatives.

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