Skip to main content
GitHub

TOOL

Tool and action execution failures.

The TOOL module covers errors when agents interact with external tools, APIs, and services. These errors span the full lifecycle from invoking a tool, through execution, to handling the result.

Categories

INVOCATION

Tool calling failures.

CodeSeverityDescriptionRemediation
TOOL.INVOCATION.NOT_FOUND4Tool not found or unavailableValidate tool availability before planning
TOOL.INVOCATION.INVALID_ARGS4Invalid arguments to toolValidate arguments against schema
TOOL.INVOCATION.TYPE_MISMATCH3Argument type mismatchImplement type coercion
TOOL.INVOCATION.MISSING_REQUIRED4Missing required argumentValidate required arguments
TOOL.INVOCATION.PERMISSION_DENIED4Permission denied for toolCheck permissions before invocation

EXECUTION

Tool execution failures.

CodeSeverityDescriptionRemediation
TOOL.EXECUTION.TIMEOUT3Tool execution timed outImplement timeout handling
TOOL.EXECUTION.CRASHED5Tool crashed during executionAdd crash recovery
TOOL.EXECUTION.RATE_LIMITED3Tool rate limitedImplement rate limit handling with backoff
TOOL.EXECUTION.DEPENDENCY_FAILED4Tool dependency failedValidate dependencies before execution
TOOL.EXECUTION.RESOURCE_EXHAUSTED4Tool exhausted resourcesImplement resource limits

Note

TOOL.EXECUTION.TIMEOUT is one of the most frequently diagnosed errors. The self-healing pipeline typically applies a retry fix with exponential backoff as the first remediation attempt.

RESULT

Tool result handling failures.

CodeSeverityDescriptionRemediation
TOOL.RESULT.UNPARSEABLE4Cannot parse tool resultImplement robust result parsing
TOOL.RESULT.UNEXPECTED_FORMAT3Unexpected result formatValidate result schema
TOOL.RESULT.PARTIAL2Partial result returnedHandle partial results gracefully
TOOL.RESULT.EMPTY2Empty result returnedHandle empty results
TOOL.RESULT.ERROR_IN_RESULT3Error embedded in resultParse and handle result errors

Example Diagnosis

{
  "error_code": "TOOL.EXECUTION.TIMEOUT",
  "confidence": 0.95,
  "root_cause": "External API response time exceeded the 30s timeout due to upstream service degradation.",
  "suggested_fixes": ["retry", "fallback"]
}

Next Steps