Skip to main content
Glama

run_validate

Destructive

Run a check (tests, a build, a linter) through Istok for your run of the task: Istok executes the command in the project and records its exit code and output as evidence, tied to the state of the code it checked, which a check run in your…

Instructions

Run a check (tests, a build, a linter) through Istok for your run of the task: Istok executes the command in the project and records its exit code and output as evidence, tied to the state of the code it checked, which a check run in your own shell cannot give. Run it after your last change to the code: task_done refuses a validation when the code has changed since. Prefer it to running the check yourself and reporting it with task_evidence. Pass task_id, and argv without a shell.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "argv": "<argv>"
    },
    "name": "run_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional relative working directory inside the fixed project directory.
argvYesManaged command argv without a shell.
run_idNoCanonical UUIDv7 run identifier; with lease_id instead of task_id.
task_idNoCanonical UUIDv7 task identifier of a task you claimed; runs the command in your active run of it. Use it or run_id with lease_id.
lease_idNoCurrent run lease UUIDv7; with run_id.
timeout_msNoPositive command timeout in milliseconds.
output_limitNoPositive per-stream output limit in bytes.
allow_dangerousNoAllow a dangerous command with an audited reason.
override_reasonNoRequired with allow_dangerous for dangerous commands.
termination_grace_msNoPositive termination grace in milliseconds.

Output Schema

NameRequiredDescriptionDefault
errorNo
artifactsYes
executionNo
validationNo
schema_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.6.0
    • addedOutput schema / properties / validation / properties / tree_commit
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / validation / properties / tree_digest
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / validation / properties / tree_state
      Added value: +{
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, it discloses the evidence-recording behavior, exit-code/output capture, code-state binding, and the constraint that argv is passed without a shell. What it does not address is the destructiveHint=true profile: nothing warns that arbitrary project commands may mutate or damage state, nor is allow_dangerous/override_reason explained. The annotations carry the risk signal, so this is a real but contained gap.

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?

It is front-loaded with the action and its unique value, then the ordering constraint, then the sibling trade-off — a sensible progression with no filler. The middle sentence is long and clause-heavy, costing a point on tightness.

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

Completeness4/5

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

With an output schema present the description needn't explain return values, and it covers purpose, timing, evidence semantics, and the shell-free invocation. The main omission is any hint about how dangerous commands and the allow_dangerous/override_reason path work, which matters for a tool annotated destructive.

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?

Schema coverage is 100%, so the baseline is 3. The description adds practical meaning for two parameters (task_id, argv-without-shell), but says nothing about the run_id/lease_id pairing, timeout_ms, output_limit, or the allow_dangerous plus override_reason workflow, leaving the schema to do the rest.

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 a check (tests, a build, a linter) through Istok') and immediately explains the distinguishing value: Istok executes in the project and records exit code and output as evidence tied to the code state. That is enough to separate it from task_evidence and from running a command in the agent's own shell.

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 gives explicit timing guidance ('Run it after your last change to the code'), the consequence of ignoring it (task_done refuses a validation when the code has changed since), and a named alternative to avoid ('Prefer it to running the check yourself and reporting it with task_evidence'). When-to-use, ordering, and the rejected alternative are all present.

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