Skip to main content
Glama
Guardz Generator MCP Server

Guardz Generator MCP Server

by thiennp

validate_typescript

Checks TypeScript files for errors before type guard generation, helping prevent invalid code from reaching later steps.

Instructions

Helper to validate TypeScript before generating type guards

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": {
      "files": "<files>"
    },
    "name": "validate_typescript"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesTypeScript files to validate before type guard generation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.8

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. It does not state whether validation is read-only, what happens on invalid input, how results are returned, or whether files are modified.

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 front-loaded sentence with no wasted wording. It is concise, though the brevity contributes to the specification gaps noted elsewhere.

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?

There is no output schema and no annotations, so the description should clarify what validation produces. Instead it only names a workflow step, leaving an agent without enough information about outcomes or error behavior.

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?

The schema has 100% description coverage for the single "files" parameter, and the description adds no additional meaning beyond that. With high schema coverage, the baseline score of 3 is appropriate.

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

Purpose3/5

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

"Validate TypeScript" identifies a verb and resource, but "Helper" is vague and the description does not specify what validation means (e.g., type checking vs. syntax checking). It also does not distinguish this from sibling tools like lint_code.

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 "before generating type guards" gives a workflow timing, which is useful context. However, it names no alternatives or exclusions, so an agent cannot tell when to prefer this over lint_code or generate_type_guards.

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