agentflight_lint_tools
Statically inspects MCP tool schemas against 10 ergonomics rules, calculates an Agent Ergonomics Score, and returns actionable fixes for LLM tool-calling issues.
Instructions
Statically inspect MCP tool schema definitions against 10 ergonomics rules (TS001-TS010) and calculate an Agent Ergonomics Score.
Purpose
Evaluates Model Context Protocol tool schemas for anti-patterns that confuse LLM tool-calling (tautological descriptions, missing required arrays, ambiguous parameter types, unconstrained inputs, and lack of usage boundaries). Produces an ergonomics score (0-100) and actionable remediation steps.
When to use
Auditing and validating MCP tool definitions during development or CI/CD pre-commit hooks.
Benchmarking tool schema clarity and LLM tool selection readiness before deployment.
When NOT to use
Do NOT use to evaluate runtime agent trajectory recordings; use
agentflight_diff_cassettesoragentflight_verify_cassetteinstead.
Behavior & Side Effects
Read-only: Operates purely in-memory; does not mutate any schemas or files.
Deterministic: Analyzes schemas through static AST and JSON Schema inspection with zero external network calls.
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": {
"tools": "<tools>"
},
"name": "agentflight_lint_tools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tools | Yes | List of MCP tool definition objects containing name, description, and inputSchema to be statically analyzed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| score | Yes | Agent Ergonomics Score from 0 to 100. | |
| passed | Yes | True if score meets or exceeds the passing threshold (>= 80). | |
| violations | Yes | List of detected tool smell violations across rules TS001 through TS010. |