Skip to main content
Glama

plan_fail

Mark an active plan step as failed and record the failure reason so work can resume from an accurate state.

Instructions

Mark the active [~] step as failed [!] and append a reason.

Args: id: ID of the failed step. reason: Reason for the failure.

Returns: A success or error message.

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": {
      "id": "<id>",
      "reason": "<reason>"
    },
    "name": "plan_fail"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
reasonYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full disclosure burden, and it only covers the surface action (set status to failed, append reason). It says nothing about whether the plan is aborted, whether subsequent steps are skipped, whether an already-failed step can be re-marked, or what constitutes an error.

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 one-line action followed by short Args and Returns blocks with no padding. The 'Returns: A success or error message' line is largely wasted for an agent that already has an output schema, but the overall size is appropriate.

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?

For a simple two-parameter tool with an output schema, the essentials are present, and return values need not be re-explained. However, as a state mutation in a planning workflow with zero annotation coverage, the missing consequences (plan termination, effect on remaining steps, error conditions) leave real gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, but its parameter docs are close to tautological: 'reason: Reason for the failure' restates the name, and 'id: ID of the failed step' does not clarify that it must be the active step, its type, or how to discover valid IDs.

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+resource+effect: mark the active [~] step as failed [!] and append a reason. An agent can distinguish it from plan_done or plan_next by the target state, though the description never names those siblings explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the tool name and the 'active step' framing; there is no explicit statement of when to choose plan_fail over plan_done, or that it should only be called on the currently active step. No preconditions or exclusions are given.

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

Deploy Server

Other Tools