Skip to main content
Glama

tree_check

Run applicable data-check rules at or under a path; narrow to named rules to verify one node and reveal each evaluation's reads.

Instructions

Run every applicable rule at or under path — the domain's data checks. Structural only; domain summaries (e.g. geometry's bounding box / volume via tree_measure) are registered by the domain's own tools, not here.

rule narrows the run to the rule(s) named. That is the "is this still wrong?" question — one rule, one node, asked after doing something about it — and it costs that rule's reads instead of the whole tree's. Naming a rule also prints what each evaluation READ: every param, solve, linked and ctx call with its arguments and the value it returned, so a red arrives with the values behind it. A name no rule carries is an error, never an empty pass.

Input Schema

NameRequiredDescriptionDefault
pathNo
ruleNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description does substantial work: it discloses structural-only scope, that domain summaries are not included, that narrowing by rule changes read cost, that named-rule evaluations print all reads with arguments and returned values, and that an unknown rule name is an error rather than an empty pass. It stops short of explicitly stating whether the operation is read-only or what permissions are required.

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 front-loaded with the core purpose and then adds behavioral detail. Some phrasing is dense and rhetorical, such as the 'is this still wrong?' framing and 'a red arrives with the values behind it,' but it remains informative rather than padded.

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?

For a two-parameter tool with an output schema, the description covers scope, filtering behavior, structural-only semantics, read-cost implications, and error behavior. Return formatting is appropriately left to the output schema.

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

Parameters5/5

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

Schema description coverage is 0%, but the description compensates well. It explains `path` as the scope root with checks applying at or under it, and explains `rule` as narrowing execution to one or more named rules, including cost and error semantics.

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: run every applicable rule at or under `path` for data checks. It also distinguishes this structural checking tool from domain summary/measurement tools, noting that summaries like tree_measure are registered elsewhere.

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?

It gives a clear use case for the `rule` parameter: asking whether one specific rule is still failing after a fix, and paying only that rule's read cost. It does not explicitly compare against sibling tools like tree_rule or tree_solve, so it lacks full when-not/alternative guidance.

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