Skip to main content
Glama
MCP TypeScript Server

MCP TypeScript Server

by umutc

update_tsconfig

Updates a tsconfig.json file with new TypeScript compiler options so AI assistants can adjust project configuration programmatically.

Instructions

Update TypeScript configuration (tsconfig.json) with new compiler options

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": {
      "configPath": "<configPath>",
      "options": "<options>"
    },
    "name": "update_tsconfig"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsYesTypeScript compiler options to update or add
configPathYesPath to tsconfig.json file to update

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing. It doesn't say whether options are merged into or replace the existing config, what happens when the file is missing or malformed, whether unknown compiler options are rejected, or whether the write is atomic.

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?

A single efficient sentence with the resource and action front-loaded and no wasted wording. It is concise to the point of under-specification, but the structure itself is clean.

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

Completeness2/5

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

For a mutating tool with no annotations, no output schema, and a free-form nested options object, the definition is too thin. It should state merge semantics, failure behavior, and whether the file must pre-exist before an agent can invoke it safely.

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 both parameters are already documented, including that 'options' accepts arbitrary TypeScript compiler options. The description adds little beyond that, only lightly reinforcing 'update or add' semantics; the baseline of 3 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?

States a specific verb and resource: 'Update TypeScript configuration (tsconfig.json) with new compiler options.' That is enough to distinguish it from create_tsconfig and the read-only siblings (check_types, get_diagnostics), though the description never explicitly names the create-vs-update boundary.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance. It doesn't say the file must already exist (or that create_tsconfig should be used when it doesn't), nor mention validation prerequisites before updating.

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