Skip to main content
Glama

fail_run

Marks a goal run as failed or timed out and records the reason, helping Quarterdeck track unsuccessful or expired goal runs.

Instructions

Marks a goal run failed or timed out. For the quarterdeck-goals plugin only: agents and the model must not call this.

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": {
      "run_id": "<run_id>",
      "reason": "<reason>"
    },
    "name": "fail_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYes
run_idYes
statusNofailed
run_scopeNoA goal run passes its run id here; anyone else leaves it out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.32.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It discloses the mutation's effect (a run is marked failed or timed out) and the caller restriction, but says nothing about preconditions (must the run be active?), whether the transition is terminal or reversible, or what happens to run state and results afterwards.

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?

Two short sentences, both front-loaded, with the effect first and the caller restriction second. No filler. It could be marginally tighter, but every clause carries information.

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

Completeness3/5

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

A four-parameter mutation tool with no annotations, no output schema, and low schema coverage needs more than two sentences to be self-sufficient. The restriction sentence covers the biggest risk, but preconditions and parameter intent are left to the schema, which only partially covers them.

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 description coverage is only 25%: only run_scope is annotated in the schema, while run_id, reason, and status are undocumented there. The description adds no parameter meaning at all, but the enum on status and the required-field list in the schema still give the agent a workable baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Marks a goal run failed or timed out") with the two terminal states it sets. It doesn't differentiate itself from close siblings like cancel_run or end_run, which also terminate runs, so an agent can't fully disambiguate from purpose alone.

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?

Provides an unusually strong negative guideline: restricted to the quarterdeck-goals plugin and explicitly forbidden for agents and the model. That is decisive when-not guidance. It stops short of naming when a legitimate caller would pick this over cancel_run or end_run, so it isn't a full when/when-not/alternative treatment.

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