Skip to main content
Glama

Validate a program

validate_program
Read-onlyIdempotent

Check a Rhylthyme program for structural and scheduling errors BEFORE visualizing or saving it: missing/duplicate ids, dangling afterStep references, dependency cycles, steps that overlap within a track, tasks with no resourceConstraint, unparseable durations, invalid choice references, and schema 0.3.0-alpha instances/replicates misuse (E_INSTANCES_ON_SINGLE, E_EACH_WITH_REPLICATES, E_EACH_COUNT_MISMATCH, E_INFLIGHT_GT_COUNT, E_INFLIGHT_NO_CHAIN). Every finding has a code, a message and a fix hint — apply the fixes and re-run until valid is true. Warnings (e.g. tracks that finish far apart, W_UNBARRIERED_CHAIN) are advisory; info notes (I_IMPLICIT_BARRIER: a replicated step referenced without instances) suggest making a barrier explicit. Pure computation: no network, no side effects, safe to call repeatedly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
programYesRhylthyme program JSON (any shape — validation errors come back in the result, not as a schema rejection).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
infoNo
statsYes
validYes
errorsYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond annotations (readOnly/idempotent/destructive), the description discloses no network, no side effects, safe to call repeatedly, and explains that validation errors are returned in the result rather than as schema rejections. It also defines the semantics of findings (code/message/fix), warnings (advisory), and info notes, which is exactly the behavioral context an agent needs.

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 long but dense, and every sentence earns its place: purpose and timing are front-loaded, error categories are concrete, result semantics are explicit, and the safety note is valuable. There is no filler or redundancy.

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 validation tool with a rich output schema and one flexible input, the description covers the purpose, timing, result contract, warning/info semantics, and safety profile. Nothing needed to call it correctly is missing.

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?

The only parameter, program, has 100% schema description coverage, including the crucial 'any shape — validation errors come back in the result' behavior, so the tool description does not need to compensate. The description itself does not add much about the parameter beyond referring to the program, so a baseline 3 is appropriate.

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?

Opens with a specific action and object: 'Check a Rhylthyme program for structural and scheduling errors' and positions it temporally 'BEFORE visualizing or saving it', which separates it from sibling tools like visualize_schedule and save_program. It also enumerates concrete error categories, so an agent knows exactly what domain this validation covers.

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?

The description explicitly states when to call it ('BEFORE visualizing or saving it') and that it is pure computation safe to call repeatedly. It does not name alternatives such as analyze_schedule or calibrate_program or give explicit when-not-to-use conditions, so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.