Skip to main content
Glama

Check rules

check_rules
Read-only

Check a draft against the rulesets on the current step of an open workflow run, without saving it and without refusing. Rules run only inside workflow runs: runId names the run, and record.kind picks idea, batch, work, or delivery, which must be the kind of write that step's connection checks. Pass a record's id to start from the saved record; any fields you pass override the saved values. Batch rules check the plan, so a saved Batch can be rechecked only until one of its Works is done. Returns passed and failed rules, each with its probability (a rule passes at 0.75 or above), any rules that could not be checked with the reason, and how many rules were sent to TypeSafe (sentToTypeSafe) or answered from saved verdicts (fromSavedVerdicts). Unchanged records reuse earlier verdicts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
runIdYesId of the Workflow run.
recordYesDraft to check; kind is idea, batch, work, or delivery.
projectIdYesId of the Project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint/openWorldHint; the description adds substantial behavioral context: it is a dry-run that never refuses, the 0.75 pass threshold, that unchecked rules report a reason, the sentToTypeSafe/fromSavedVerdicts counters, and that unchanged records reuse prior verdicts. This is exactly the value-add expected above annotations.

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?

Front-loaded with the core purpose, and each sentence carries information (preservation of drafts, kind constraint, id-override behavior, return shape). It is dense and slightly long, but almost nothing is filler given the absent output schema.

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 no-output-schema tool it thoroughly explains the return values (passed/failed with probability, unchecked with reason, sentToTypeSafe/fromSavedVerdicts) and the key preconditions, so an agent has enough to call and interpret it correctly.

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 coverage is already 100%, so the baseline is 3, but the description adds genuine meaning: passing record.id starts from the saved record and any supplied fields override saved values, plus the kind constraint tied to the step's connection. That override/merge semantics isn't in the schema.

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?

States a precise verb+resource+scope: checking a draft against rulesets on a step of a workflow run, explicitly "without saving it and without refusing." This clearly distinguishes it from the mutation siblings (update_idea, update_work) and from rule-management siblings (create_rule, update_rule).

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 real preconditions: rules only run inside workflow runs, runId names the run, record.kind must match the kind of write the step's connection checks, and a saved Batch can only be rechecked until one of its Works is done. It doesn't explicitly name an alternative tool for validating-then-saving, but the when-to-use context is strong.

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.

Resources