Skip to main content
Glama
Guardz Generator MCP Server

Guardz Generator MCP Server

by thiennp

discover_files

Finds TypeScript files for type guard generation by combining CLI inputs, config paths, and include/exclude patterns, so generators can target the correct source files.

Instructions

Helper to find TypeScript files for type guard generation

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "discover_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
cliFilesNoFiles specified via CLI for type guard generation
configPathNoPath to config file
cliExcludesNoExclude patterns from CLI for type guard generation
cliIncludesNoInclude patterns from CLI for type guard generation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.8

TDQS

B3.1/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 adds almost nothing. It does not say what is returned (a file list?), how config values and CLI arguments interact or take precedence, what happens when all four optional parameters are omitted, or whether it reads the filesystem or mutates anything.

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 front-loaded sentence with no filler or redundancy. Its brevity is efficient, though it borders on under-specification for a four-parameter tool.

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?

With no annotations, no output schema, and four optional parameters whose interaction is undefined, the description should explain the precedence rules and the shape of the result. As written, an agent cannot predict what an empty-argument call does or what it receives back.

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 each of the four parameters is already documented in the schema, and the baseline of 3 applies. The description adds no meaning beyond the schema, such as precedence between cliFiles/cliIncludes/cliExcludes and the parallel configPath settings.

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?

Names a specific verb ('find') and resource ('TypeScript files') and scopes it to type guard generation, which is enough to distinguish it from siblings like generate_type_guards or lint_code. It does not explicitly state what it is not, so it stops short of a 5.

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 'for type guard generation' implies this is a discovery step within the type guard workflow, but it never says when to call it versus generate_type_guards or whether it must run first. No exclusions or alternatives are stated.

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