Skip to main content
Glama

lint_scheme_spec

Read-onlyIdempotent

Validates a draft scheme spec markdown against the bundled template, reporting missing or extra sections and whether required load-bearing concepts are specified.

Instructions

Lint a draft scheme spec (markdown) against the bundled scheme_template.md: reports missing/extra template sections and whether the draft pins down the load-bearing concepts a scheme must specify (value/recipient assertion, settlement identifier, replay protection, atomic+decimals amount encoding, verify/settle flow). Reads the bundled corpus; no network.

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": {
      "path": "<path>"
    },
    "name": "lint_scheme_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the draft scheme markdown.
templateNoOptional template path relative to the plugin root (default .x402-specs/scheme_template.md).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false; the description usefully reinforces this with 'Reads the bundled corpus; no network' and explains that it 'reports' findings rather than mutating anything. It also discloses the template source, which is behavioral context beyond the annotations. It stops short of describing report shape or whether lint failures are returned as data versus errors.

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?

Front-loaded with the verb and resource, and every clause that follows names a concrete check. The parenthetical concept list is dense but earns its space; the short trailing sentence about bundled corpus/network is efficient disclosure rather than filler.

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?

For a read-only, two-parameter linter with no output schema, the definition covers what it reads, what it compares against, what categories of findings it produces, and its network posture. An agent has enough to decide to call it and to interpret the result without opening the schema.

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%, so both parameters are already documented, and with only two params the baseline of 3 applies. The description does add meaning by identifying the bundled scheme_template.md as the default target for the optional template parameter and framing path as a draft markdown file, but no further format or path-resolution details are given.

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 ('Lint a draft scheme spec (markdown)') and enumerates exactly what is checked: missing/extra template sections plus the load-bearing concepts (value/recipient assertion, settlement identifier, replay protection, amount encoding, verify/settle flow). That is far more specific than siblings such as check_compliance or validate_extension, though it never explicitly contrasts itself with them.

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?

The description makes the usage context obvious — a draft scheme spec is linted against the bundled scheme_template.md before it is finished — but it gives no explicit when-to-use/when-not-to-use statement and never names an alternative tool for adjacent jobs like conformance runs or compliance checks.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.