Skip to main content
Glama

countinghouse_validate_module

Validate a module folder before running its code by checking package.json, api.json, schema.json, and action handler files, then report each problem with its stage and fix.

Instructions

Check your own module's folder without running its code: package.json, api.json, schema.json, and that each action has its handler file. Returns every problem found, each naming the stage and the way out. Its code runs only once you add the module with ch-local add-module in your own terminal.

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": {
      "path": "<path>"
    },
    "name": "countinghouse_validate_module"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to the module directory.

Output Schema

NameRequiredDescriptionDefault
okNo
moduleNo
problemsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden well: it discloses that no module code is executed, that all problems are returned rather than stopping at the first, that each problem names a stage plus a remedy, and that actual code execution requires a separate add-module step. It does not cover failure modes such as an invalid path or unreadable directory, leaving a small gap.

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?

Three tightly packed sentences that front-load the validation targets, then the return behavior, then the execution caveat; no filler. The final sentence about ch-local add-module is slightly tangential but clarifies a real boundary.

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

Completeness4/5

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

Output schema exists so return values need not be explained, yet the description still characterizes them usefully (every problem, each with stage and resolution). For a single-parameter read-only validator this is essentially complete, though it leaves the meaning of 'stage' undefined.

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?

Only one parameter, 'path', with 100% schema description coverage stating it must be an absolute path to the module directory. The description adds nothing beyond the schema about the path, so the baseline 3 for high coverage 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 (check/validate) and resource (your module's folder) and enumerates exactly what is inspected: package.json, api.json, schema.json, and per-action handler files. It does not name or differentiate itself from siblings such as countinghouse_validate_plan or countinghouse_load_module, which is the only thing separating it from 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 Guidelines4/5

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

Gives clear context for use: validate statically without executing module code, and note that the code only runs once you add the module via ch-local add-module. It stops short of explicit exclusions or pointing to a sibling validator (e.g. validate_plan), so the agent must infer which validator applies to which artifact.

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