Skip to main content
Glama

jtt_generate_validators

Generate runtime validators from TypeScript types in your project directory to enforce data integrity during runtime.

Instructions

Generate runtime validators from types (Pro feature)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNo
directoryYesProject directory
Behavior2/5

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

With no annotations, the description carries full behavioral disclosure burden. It only says validators are generated and that it is a Pro feature, but does not explain whether it writes files, calls an external API, requires paid access, or what side effects occur in the project directory.

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, short sentence that front-loads the primary purpose. It is appropriately concise, though the 'Pro feature' qualifier is vague and could have been expanded without harming brevity.

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?

Given the tool has no output schema, no annotations, and only 50% parameter coverage, the description is too thin. An agent cannot confidently determine what 'types' refer to, why api_key is needed, what the output validators look like, or where they are placed. Sibling tools like jtt_from_api and jtt_from_json highlight a family of related tools, but this description does not clarify its unique contract.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 50%, and the description does little to compensate. The 'directory' parameter is documented in the schema, but 'api_key' has no schema description and the tool description does not explain its role, despite 'Pro feature' implying it is relevant. The meaning of 'types' as a source is also left unexplained.

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 uses a specific verb ('Generate') and names the resource ('runtime validators from types'), making the core action clear. It is distinguishable from sibling tools like jtt_from_api or jtt_from_json, which source from API/JSON instead of types, though 'types' itself is not further defined.

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 guidance is given on when to use this tool versus alternatives such as jtt_from_api, jtt_from_json, or json_validate_schema. The phrase 'Pro feature' hints at an entitlement or api_key requirement, but the description never states prerequisites, expected input formats, or when this tool is the right choice.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/barnburner121/claude-plugin-marketplace'

If you have feedback or need assistance with the MCP directory API, please join our Discord server