Skip to main content
Glama

Validate a tsconfig.json

validate_tsconfig
Read-onlyIdempotent

Validate a standalone tsconfig with an exact TypeScript compiler version (5.4.5, 5.5.4, 5.6.3, 5.7.3, 5.8.3, 5.9.3 or 7.0.2) and return the compiler's own diagnostics with references. When to use: Use when a tsconfig option is rejected or you need to know whether an option exists in a given TypeScript version. 'extends' and project files are not resolved. Notes: No account or token needed. Example arguments: {"typescript":"5.9.3","config":{"compilerOptions":{"target":"ES2022","module":"NodeNext","strict":true}}}

Input Schema

NameRequiredDescriptionDefault
configYestsconfig content as a JSON object or JSONC text.
typescriptYesExact TypeScript version from the list above.

Output Schema

NameRequiredDescriptionDefault
errorNo
scopeYes
validYes
sourceYes
typescriptYes
diagnosticsYes
availableVersionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / config / description
      Added value: +"tsconfig content as a JSON object or JSONC text."
    • addedInput schema / properties / typescript / description
      Added value: +"Exact TypeScript version from the list above."
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive and closed-world, so the safety profile is covered. The description adds genuinely non-structured context: no account or token is required, and 'extends'/project files are not resolved — the latter being the most important behavioral caveat for a config validator.

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

Conciseness4/5

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

Front-loaded with the core action, then cleanly separated into when-to-use, notes, and an example — easy to scan. The example arguments partly restate a shape the schema already fully documents, which is mild redundancy, but the overall length is proportionate.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description needn't detail return values, and it still signals that compiler diagnostics with references come back. All the caveats an agent needs to call this correctly — pinned versions, no auth, no 'extends' resolution — are present.

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%, so baseline would be 3. However, the schema's own description for 'typescript' defers to the description ('Exact TypeScript version from the list above'), meaning the actual allowed value set lives only in the description. The example arguments also clarify that 'config' may be given as a JSON object.

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 a standalone tsconfig') plus the exact scope: a pinned TypeScript compiler version drawn from a fixed list, returning the compiler's own diagnostics. The version list and the 'standalone' qualifier make it clearly distinct from sibling validators such as validate_package_json.

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 'When to use' line gives concrete triggers: a tsconfig option being rejected, or needing to know whether an option exists in a given version. It also names a hard boundary ('extends' and project files are not resolved), which prevents misuse. It stops short of naming a sibling alternative, so it lands at 4 rather than 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources