Skip to main content
Glama

task_fail

Mark your claimed task as failed when you cannot complete it, providing a reason to unblock other agents.

Instructions

DEPRECATED: the harness owns this now, Claude Code discovers peers and manages its own task list. Still works; not where new work should go.

Mark your claimed task as failed. Use when you cannot complete it.

Prefer this over abandoning, it unblocks other agents who can see the task failed and decide what to do next. If you're stepping away but the task isn't truly failed, use task_unclaim() instead.

Args: task_id: ID of a task you have claimed. body: Optional reason recorded on the task's comment log. Strongly recommended.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoOptional reason recorded on the task's comment log. Strongly recommended.
task_idYesID of a task you have claimed.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.17.0
  2. Removedv0.16.1
  3. Addedv0.9.0
  4. Removedv0.7.0
  5. Changed1 schema field changed
    • addedInput schema / properties / body
      Added value: +{
      +  "default": "",
      +  "title": "Body",
      +  "type": "string"
      +}
  6. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare destructiveHint=false and openWorldHint=false, which is somewhat consistent since marking a task as failed is not destructive in a data sense but is a state change. The description adds that it 'unblocks other agents' and that the body is recorded on the comment log, which is useful behavioral context beyond annotations. It does not contradict annotations, so a 4 is appropriate.

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?

The description is well-structured, starting with a deprecation notice, then the core action, then usage guidance. It is slightly verbose with the deprecation notice taking prime space, but it's important for routing agents to alternatives. The content is concise and front-loaded with the most critical info.

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?

The description is complete for the tool's purpose, including deprecation status, usage guidance, and why to use it over alternatives. The output schema exists but the description doesn't explain return values, but that's not necessary since output schema exists. It covers prerequisites (claimed task) and the effect on other agents. Slight gap: no mention of prerequisites like being a claimer, but that's implied.

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

Parameters5/5

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

The description explicitly explains both parameters: task_id is 'ID of a task you have claimed' and body is 'Optional reason recorded on the task's comment log. Strongly recommended.' This adds value beyond the schema, which only gives terse descriptions. The description also provides rationale for using body, which is helpful.

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?

The description clearly states the tool's purpose: 'Mark your claimed task as failed.' The verb 'mark' and resource 'task' are specific, and the description distinguishes it from task_unclaim by stating when to use each. It also mentions that the harness now owns this functionality, adding context. However, it doesn't explicitly contrast with all sibling task tools like task_complete, so it loses a point.

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?

Provides explicit guidance on when to use: 'Use when you cannot complete it.' It also explicitly contrasts with task_unclaim: 'If you're stepping away but the task isn't truly failed, use task_unclaim() instead.' This is a clear when-to-use and when-not-to-use, naming the alternative tool.

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