Skip to main content
Glama
MCP TypeScript Server

MCP TypeScript Server

by umutc

validate_syntax

Checks a TypeScript file for syntax errors without full type checking, so you can catch invalid syntax using only the file path.

Instructions

Validate TypeScript syntax without full type checking

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": {
      "filePath": "<filePath>"
    },
    "name": "validate_syntax"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYesPath to TypeScript file to validate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses the key behavioral limit (syntax only, no semantic/type analysis), but says nothing about whether the file is modified, what happens on a missing or non-TS file, or the shape of the result beyond implying diagnostics.

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?

One short clause, front-loaded with the verb and scope, with zero filler. Every word contributes to distinguishing the tool's scope.

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

Completeness3/5

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

For a one-parameter read-style validator this is close to adequate: purpose and scope limit are stated. However, with no annotations and no output schema, the description should say what the agent gets back (error list with locations? boolean?) to be self-sufficient.

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?

There is a single parameter and schema coverage is 100%, so the schema already documents filePath fully. With zero parameters needing description-level compensation, the baseline of 4 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Validate TypeScript syntax" gives a specific verb and resource, and the qualifier "without full type checking" carves out a clear boundary against type-checking siblings like check_types and compile_typescript. It stops short of naming which sibling to use instead, so it is not fully disambiguating.

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 phrase "without full type checking" implicitly tells the agent to pick this over a full type-check tool when only parse/syntax errors matter, but that inference is left to the reader. No explicit when-to-use, prerequisites, or named alternative is given.

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