Skip to main content
Glama
jgauffin

ts-language-mcp

by jgauffin

get_all_diagnostics

Get TypeScript and ESLint errors and warnings for all files to assess project health after changes. Results are sorted by severity and capped at 50 by default.

Instructions

Get TypeScript + ESLint errors and warnings for all files in the project. Useful for checking project health after changes. Results are sorted by severity (errors first) and capped at the top 50 most severe by default — summary.total reflects the true total and summary.truncated indicates when the cap was hit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum diagnostics to return across all files, sorted by severity (default: 50, max: 500)
severityNoFilter diagnostics by severity (optional)
includeEslintNoInclude ESLint diagnostics if ESLint is installed in the target project (default: true)
includeSuggestionsNoInclude TypeScript suggestion diagnostics such as unused locals and unused imports (default: false).
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses sorting by severity, a default cap of 50 results, and the 'summary.total' and 'summary.truncated' fields. It could be improved by noting any performance implications or that it scans all files, but current coverage is strong.

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?

Two sentences, front-loaded with purpose and scope. The second sentence adds critical behavioral details without any redundant or extraneous information. Every sentence earns its place.

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?

Given the absence of an output schema and annotations, the description reasonably explains the tool's behavior, including the summary fields. It could mention what a single diagnostic entry looks like or note that scanning all files may be slow on large projects, but it is largely complete for a diagnostics list tool.

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 the baseline is 3. The description adds context about truncation and sorting, which relates to the 'limit' parameter, but adds little beyond what the schema already says for each parameter. No parameter-specific usage guidance is given.

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?

Clearly states 'Get TypeScript + ESLint errors and warnings for all files in the project.' This provides a specific verb (Get), resource (diagnostics), and scope (all files). It distinguishes itself from the sibling 'get_diagnostics' by explicitly covering the entire project.

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?

The description says 'Useful for checking project health after changes,' which gives a clear use case. It does not, however, explicitly mention when not to use this tool or name alternatives (e.g., 'get_diagnostics' for single-file checks), which would improve the score.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jgauffin/ts-language-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server