Skip to main content
Glama

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

x402_lint

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. Example: ?url=https://1gateway.dev/v1/time/convert Price: $0.008 USDC (Base or Solana) via x402.

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. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it states 'Never pays', describes the output as JSON score/grade/per-check results with fix hints, and lists the checks performed. It omits auth, rate-limit, or failure-mode details, but core safety and return behavior are disclosed.

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 dense but front-loaded: use case first, then inputs, outputs, a safety note, and an example. The list of checks is long but earns its place by showing what the linter evaluates.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description must explain returns; it does so thoroughly with score, grade, per-check pass/warn/fail, fix hints, and measured uptime. Together with clear input semantics and the example, an agent has enough context to call it correctly.

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 100%, so both parameters are already documented in the schema. The description restates that url is an 'https x402 resource' and method is GET or POST, but adds little beyond what the schema provides.

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: it grades an x402 endpoint's 402 quote, Bazaar metadata, and discovery docs. It uses 'linter' and 'pass Bazaar/CDP listing checks', which clearly distinguishes it from sibling tools like x402_preflight and x402_verify.

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?

It gives a clear use case: 'Use when you sell an API over x402 and want it to pass Bazaar/CDP listing checks.' This tells the agent when it is appropriate, but it does not explicitly name alternatives or exclusions such as when to use x402_verify instead.

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