Skip to main content
Glama

Run replayable command (ToolAhead)

run
Idempotent

Execute exact test, build, or lint commands listed in .prefetch-replay.json for instant cached results. Also handle toolahead.toml commands with required services pre-started.

Instructions

Run an exact deterministic test, build, or lint command that is listed in .prefetch-replay.json. ToolAhead may replay an identical prefetched result. Commands declared under [commands] in toolahead.toml also run here: their required services are started and health-checked first (never replayed). Use the agent's native shell for commands that are neither.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesExact command listed in .prefetch-replay.json.
descriptionNoShort description of what the command does.
Install Server

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the idempotentHint annotation, the description discloses that ToolAhead may replay a prefetched result and that toolahead.toml commands get their services started and health-checked instead of being replayed. It does not contradict the annotations; a small gap remains around return output/error behavior, but the key behavioral traits are covered.

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?

Three short sentences, front-loaded with the primary purpose, followed by the replay nuance and an explicit fallback. No filler words; every clause contributes.

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?

For a tool with no output schema and a moderate annotation set, the description covers main use cases, replay behavior, and alternatives. It does not describe the return format or failure modes, but for a command runner the core behavior is sufficiently specified.

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?

The schema already covers both parameters, so baseline is 3. The description adds meaning by explaining that the command must be exact/deterministic and by expanding accepted commands to include those declared in toolahead.toml, which is not captured in the schema's command description. It doesn't fully specify how toolahead.toml commands are formatted, but enough is added.

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 opens with a specific verb and resource: 'Run an exact deterministic test, build, or lint command that is listed in .prefetch-replay.json.' It clearly distinguishes this from sibling file tools by limiting to replayable commands and directing other commands to the native 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 when-to-use guidance: commands in .prefetch-replay.json or [commands] in toolahead.toml; it also states when not to use it: 'Use the agent's native shell for commands that are neither.' This is a clear exclusion rule.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/michael-ra/toolahead'

If you have feedback or need assistance with the MCP directory API, please join our Discord server