Skip to main content
Glama
Guardz Generator MCP Server

Guardz Generator MCP Server

by thiennp

lint_code

Lint generated TypeScript type guard code, report issues, and optionally apply automatic fixes.

Instructions

Helper to lint generated type guard code

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": "lint_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
fixNoAutomatically fix linting issues
filesYesFiles to lint (typically generated type guard files)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.8

TDQS

B3.3/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 the tool only reports issues or can modify files, despite the schema exposing a 'fix' option that auto-fixes linting issues. It also says nothing about output, permissions, or side effects.

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?

The definition is a single short sentence with no filler or redundancy. The key purpose is front-loaded, though the brevity also exposes the broader gaps in guidance and behavioral detail.

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 simple two-parameter linting tool, the description establishes the basic purpose. However, with no annotations and no output schema, it is less complete than it could be regarding return values, read-only versus mutating behavior, and how the 'fix' parameter changes outcomes.

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 coverage is 100%, with both parameters already documented: 'files' is described as files to lint and 'fix' as automatic fixing. The description adds little beyond what the schema provides, so the baseline score 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?

The description clearly states a specific verb (lint) and resource scope (generated type guard code). It distinguishes the tool from sibling operations like format_code or validate_typescript by focusing on linting generated type guards, but it does not explicitly name or compare against those alternatives.

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 'generated type guard code' implies the intended context for use, which is useful. However, there is no explicit guidance on when to use this tool versus format_code or validate_typescript, nor any mention of when not to use it.

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