Skip to main content
Glama

failure_analysis

Analyze permanently failed tasks to generate defensive rules, structured failure cases for agent learning, and system improvement proposals.

Instructions

Analyze failed tasks, distill defense rules + training cases + improvement proposals (failure alchemy).

When a task permanently fails (exceeds retry limit), call this tool for deep failure analysis. Automatically generates three learning artifacts saved to team memory:

  • Antibody: Defensive rule suggestions to prevent similar failures

  • Vaccine: Structured failure case for new Agents to reference and learn from

  • Catalyst: System improvement proposals to drive process optimization

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYesID of the failed task
team_idYesID of the owning team

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool generates three learning artifacts and saves them to team memory, which is a significant behavioral trait. It does not cover potential side effects on the task or rate limits, but the core behaviors are transparent.

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?

The description is concise, with a clear structure: purpose first, then usage condition, then output artifacts. Every sentence adds value, and there is no redundant information.

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?

Given the tool's complexity and the existence of an output schema, the description adequately covers when to use it and what it produces (three artifacts). It does not explain whether repeated calls are safe or affect task status, but it is sufficient for typical use.

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?

Both parameters (task_id, team_id) are described in the input schema with 100% coverage. The description adds no additional meaning beyond the schema, so baseline 3 is appropriate.

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 clearly states it analyzes failed tasks and generates three specific artifacts (antibody, vaccine, catalyst). It uses specific verbs and resources, and distinguishes itself from siblings like 'diagnose_task_failure' by emphasizing deep failure analysis and learning artifacts.

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?

The description explicitly says to call this tool when a task permanently fails (exceeds retry limit). It does not explicitly mention when not to use it or name alternatives, but the context of deep failure analysis vs. other diagnostic tools is implied. The condition for use is clearly stated.

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

Install Server

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/CronusL-1141/AI-company'

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