Skip to main content
Glama

Feature Validate

feature_validate
Read-only

Validate feature definitions before building: catch unknown templates, missing or malformed references, and invalid scalar inputs, returning a list of problems.

Instructions

Validate a feature instantiation {template, refs, inputs} WITHOUT building it — the cheap structural front door (mirrors recipe_validate). Catches an unknown template, an unknown/missing required reference, a malformed reference value, and every scalar-input failure (missing required, out of range, wrong type, bad unit, unknown key). A tag that doesn't resolve against real geometry is caught at feature_instantiate time. Returns {ok, problems}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refsNo
inputsNo
templateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the readOnlyHint annotation, the description explains the non-building nature, enumerates the exact failure classes it detects (unknown template, missing/malformed references, scalar-input failures), and discloses the return shape {ok, problems}. It also documents a meaningful limitation, which is useful behavioral context beyond the annotations.

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 description is compact and front-loaded, with each sentence adding distinct value: what it does, what it catches, what it does not catch, and what it returns. There is no repetition of annotations or schema information.

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

Completeness5/5

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

With no output schema, the description supplies the return contract ({ok, problems}), the full scope of validation, and the boundary with feature_instantiate. An agent has enough information to call the tool correctly and interpret its result.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it does: it names {template, refs, inputs} and maps each to its validation concern—template identity, references, and scalar inputs. It does not specify the exact object shape of refs/inputs, but that is reasonably left to the template being validated.

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

Purpose5/5

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

The description states a specific verb and resource: 'Validate a feature instantiation {template, refs, inputs} WITHOUT building it.' It also distinguishes itself from the sibling feature_instantiate by explicitly noting that geometry-dependent tags are caught there, not here.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It positions the tool as a 'cheap structural front door' before building, and explicitly tells the agent what it does not catch ('A tag that doesn't resolve against real geometry is caught at feature_instantiate time'). The mention of recipe_validate as a mirror gives an additional routing signal to an analogous sibling.

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

Deploy Server

Other Tools