Skip to main content
Glama
0xNagato
by 0xNagato

lint_mcp_tools

Lint an MCP tools/list schema to report missing descriptions, destructive tools without confirmation gates, unconstrained parameters, duplicate names, and token cost.

Instructions

Lint an MCP tool schema — pass the JSON from a tools/list response or a bare array of tool objects. Reports missing descriptions, destructive tools with no confirmation gate, unconstrained free-form parameters that widen prompt-injection surface, duplicate tool names, and the per-request token cost of the whole tool list. Use when designing or reviewing an MCP server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaYesThe tools/list JSON payload, as a string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and provides a rich list of what it reports: missing descriptions, destructive tools without confirmation gates, unconstrained parameters, duplicate names, and token cost. It does not explicitly state that the operation is read-only or describe the report format, but the behavioral scope is well disclosed.

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 sentences, front-loaded with purpose, then output details, then usage context. No filler or repetition.

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?

For a single-parameter lint tool with no output schema or annotations, the description adequately explains what the tool inspects and when to use it. It does not cover error behavior or output structure in detail, but the report categories give sufficient completeness.

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% and the single parameter is documented. The description adds meaning beyond the schema by clarifying that the input can be a tools/list response or a bare array of tool objects, which is useful format guidance.

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+resource ('Lint an MCP tool schema') and clearly identifies the input sources. It does not explicitly distinguish itself from the sibling lint_skills tool, though the resource domain is distinct.

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?

Provides a clear usage context: 'Use when designing or reviewing an MCP server.' It does not state when not to use it or name alternative tools.

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