Skip to main content
Glama

tsc_check

Type-check TypeScript code using tsc --noEmit, returning status and error count with configurable timeout and subdirectory for targeted checks.

Instructions

TS type-check via tsc --noEmit -> {status,errorCount}; timeout 60s default; dir = subdir.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirNosubdir
timeoutNotsc run timeout in ms (default 60000)
workspace_dirYesREQUIRED: project root (abs).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv0.4.5-post9
    • addedInput schema / properties / timeout / description
      "tsc run timeout in ms (default 60000)"
    • addedInput schema / properties / workspace_dir / description
      "REQUIRED: project root (abs)."
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the burden. It discloses the command, output shape, timeout, and directory behavior, but it does not explicitly state that this is a read-only operation or mention potential side effects (e.g., creation of incremental cache files).

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?

The description is a single sentence with no waste, but 'dir = subdir' is a bit terse. It is front-loaded with the main action and output format.

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 simple tool with no output schema and no annotations, the description provides enough context: it states the command, output shape, timeout, and directory scoping. Missing an explicit safety note, but this is a type-check tool and non-mutating behavior is implied.

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% with parameter descriptions, so baseline is 3. The description adds value by clarifying that `dir` refers to a subdirectory and confirming the timeout default (`60s`), which enriches beyond the schema.

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 the tool runs TypeScript type-checking via `tsc --noEmit` and summarizes the output as `{status,errorCount}`. The verb and resource are specific, and it is distinct from sibling tools like code_quality or code_review.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for type-checking a subdirectory, but it does not explicitly state when to use it over alternatives like code_quality or sandbox_validate. No exclusions or prerequisites are mentioned.

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

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/wulun811/LiuHe'

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