Skip to main content
Glama

x402 seller linter: grade an x402 endpoint's 402 quote, Bazaar metadata and discovery docs

x402_lint
Read-onlyIdempotent

Use when you sell an API over x402 and want it to pass Bazaar/CDP listing checks. Input: url (https x402 resource), method GET or POST. Output: JSON score 0-100, grade, per-check pass/warn/fail with fix hints (x402 v2 quote, accepts fields, USDC asset, payTo format and OFAC list, description quality, Bazaar schemas, header size, CORS, latency, openapi/llms.txt, ERC-8004) plus our measured uptime. Never pays. Use instead: x402_preflight for a buyer-side check before paying. Example: ?url=https://1gateway.dev/v1/time/convert Price: $0.008 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "x402_lint"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttps URL of the x402 resource to grade (public host)
methodNoHTTP method of the resource (POST sends an empty JSON body)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, openWorldHint=true, so the safety profile is covered; the description still adds meaningful context beyond them by stating 'Never pays' (confirming the read-only guarantee in domain terms) and by disclosing the output shape and the fact that uptime is measured. It does not mention rate limits, caching of results, or whether grading requires the endpoint to be live, which are the remaining behavioral gaps.

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

Conciseness3/5

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

The definition is front-loaded and information-dense: the use-when condition, input, output, sibling alternative and example all arrive in order. However, the closing sentence about price ($0.008 per call, payment in USDC across five chains) is sales copy that does not help an agent select or invoke the tool, and the long parenthetical of check names makes the middle sentence heavy.

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?

There is no output schema, but the description compensates by naming the return fields (score 0-100, grade, per-check pass/warn/fail with fix hints, measured uptime) and the check categories, which is enough for an agent to anticipate results. What is missing is what happens on an unreachable endpoint or how partial failures are represented in the score.

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%, so the baseline is 3. The description goes beyond the schema by constraining method to 'GET or POST' and by clarifying that url must be an https x402 resource, details the schema does not encode as an enum or format. It still does not explain any failure behavior for an unreachable or non-x402 URL.

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 states a specific verb and resource: grading an x402 seller endpoint's 402 quote, Bazaar metadata and discovery docs, with an enumerated list of checks performed (x402 v2 quote, accepts fields, USDC asset, payTo/OFAC, CORS, latency, ERC-8004). It explicitly distinguishes itself from the sibling x402_preflight ('buyer-side check before paying'), so an agent can pick between them without opening either schema.

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

Usage Guidelines5/5

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

It gives an explicit when-to-use condition ('Use when you sell an API over x402 and want it to pass Bazaar/CDP listing checks') and an explicit alternative with the selecting condition ('Use instead: x402_preflight for a buyer-side check before paying'). It also provides a concrete example URL, which is exactly the kind of routing aid an agent needs.

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