Skip to main content
Glama

Lint Spec

lint_spec
Read-only

Validate API specifications against style guide rules and return violations grouped by severity with rule details and affected paths. Use it to find style issues before publishing.

Instructions

Validate an API specification against style guide rules. Returns violations grouped by severity (error, warning, info) with rule details and affected paths. Use this to check against style guide rules; to check against the OpenAPI standard use validate_spec. Requires project context.

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": {
      "specId": "<specId>"
    },
    "name": "lint_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
specIdYesPublic ID (GUID) of the API specification to lint
versionIdNoVersion GUID to lint alone, without a notification. Omit for all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.1
    • addedInput schema / properties / versionId
      Added value: +{
      +  "default": null,
      +  "description": "Version GUID to lint alone, without a notification. Omit for all.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. First observedv1.1.1

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, so the safety profile is covered; the description adds value by describing the return shape (violations grouped by error/warning/info with rule details and affected paths), which matters because there is no output schema. It does not cover scope of the lint run beyond the versionId schema field, but nothing contradicts the read-only annotation.

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

Conciseness5/5

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

Three short sentences: purpose, return shape, then sibling routing. The alternative is placed after the core purpose is established, and there is no filler.

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?

Return structure is described even without an output schema, and parameters are fully covered by the schema. The only loose end is 'Requires project context', which names a prerequisite without explaining how project scope is supplied, given there is no project parameter in 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 description coverage is 100%, so both specId and versionId are already fully documented in the schema. The description adds no syntax, format, or behavioral detail about either parameter, so the baseline 3 applies.

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?

States a specific verb and resource ('Validate an API specification against style guide rules') and immediately contrasts with the sibling that performs a different kind of validation. An agent can distinguish this from validate_spec without inspecting 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?

Gives explicit routing guidance: use this for style guide rules, use validate_spec for the OpenAPI standard. It also flags the precondition that project context is required, which is a real usage constraint.

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

Deploy Server

Other Tools