delimit_tdqs_lint
Score Python @mcp.tool() docstrings against the 6 TDQS dimensions to catch low-quality descriptions before publishing your MCP server.
Instructions
Score MCP tool docstrings against the 6 TDQS dimensions (LED-2108).
When to use: as a CI gate before publishing the MCP server, to catch low-quality tool descriptions. Operates on any Python file with @mcp.tool()-decorated functions.
When NOT to use: for runtime tool selection or policy decisions — TDQS grades documentation, not behaviour. Use delimit_lint for OpenAPI specs and delimit_gov_evaluate for policy-class decisions.
Sibling contrast: unlike delimit_lint (OpenAPI specs) and delimit_spec_health (spec quality scoring), this scores Python source against Glama's Tool Definition Quality Score rubric.
Side effects: none. Pure read-only static analysis via ast (no import, no execution). Does not write ledger, evidence, or notify.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_file | No | Path to a Python file with @mcp.tool() decorators. Default "ai/server.py", resolved against cwd. | ai/server.py |
| human | No | If True, include a human-readable "report" string in the response. Default False (JSON-only is cheaper for CI pipes). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||