Skip to main content
Glama

SpendPreflight

Free x402 Lint

lint_endpoint

Use when you sell via x402 and want a free check of your public payment challenge. Free x402 Lint by SpendPreflight. Includes a free passive Security Check summary; optional full report with fixes is $0.10, no automatic payment. Checks a public HTTPS endpoint with an unpaid GET: v1/v2 challenge shape, payTo/asset/network syntax, price, Bazaar metadata and browser CORS headers. Returns a heuristic Listing Guard riskScore (0–100 or unknown), fixes and a public seven-day report link. Positive scores include optional paid Listing Guard and monitoring links; no paid call is made. Scores are not safety or Bazaar acceptance guarantees. No payment or credentials; GET cannot validate a POST-only endpoint or paid delivery. Do not submit private URLs. CI Action: https://github.com/spendpreflight/x402-lint-action; report badge: /v1/lint/reports/{id}/badge.svg reads only the existing seven-day snapshot, never runs a check.

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": "lint_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesRequired. Exact public resource URL string, including path; no credentials. Example: https://api.example.com/data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / url / description
      Added value: +"Required. Exact public resource URL string, including path; no credentials. Example: https://api.example.com/data."
  2. Added

TDQS

A4/5.0
Behavior5/5

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

Goes well past the annotations: it discloses that the probe is an unpaid GET with no credentials, that no paid call is ever made even when paid links appear in the response, that a POST-only endpoint or paid delivery cannot be validated this way, that scores are heuristic and not safety or Bazaar-acceptance guarantees, and that the badge path only reads an existing snapshot. That is exactly the cost/side-effect/precondition context the readOnlyHint=false and openWorldHint=true flags leave ambiguous.

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 use-when clause is correctly front-loaded, but the body is a run-on that mixes pricing, return values, disclaimers, caveats, CI Action URL and badge semantics with no separation. Every element is arguably relevant, yet the pricing and GitHub-link material crowds out the operational guidance and makes the definition harder to scan.

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?

With no output schema, the description does the necessary work of naming the return payload: riskScore (0-100 or unknown), fixes, and the seven-day report link. Limitations that affect correct invocation (public HTTPS only, GET only, no private URLs) are all stated. Only the sibling-selection angle and the fact that pricing/ad links are optional rather than automatic are slightly buried.

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 100% for the single url parameter, so the schema already carries format, length and example. The description adds only the constraints "do not submit private URLs" and no credentials, plus the GET-only caveat, which is marginal beyond the schema. Baseline 3 is appropriate.

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 and resource: a free lint of a public x402 payment challenge via an unpaid GET, covering challenge shape, payTo/asset/network syntax, price, Bazaar metadata and CORS. It also distinguishes the free lint from the optional paid full report and from the passive Security Check summary. It does not, however, say how this differs from siblings like check_endpoint or security_check by name, so the agent must infer the boundary.

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?

"Use when you sell via x402 and want a free check of your public payment challenge" gives a clear trigger condition, and the description explicitly separates the free check from the $0.10 full report and points to the CI Action and badge for other workflows. Missing is guidance on when to pick this over the closely named siblings (check_endpoint, security_check, listing_guard), which an agent selecting among 16 tools would need.

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