Skip to main content
Glama
HexStrike AI MCP Agents

HexStrike AI MCP Agents

by liusc45

test_error_recovery

Simulate tool failures such as timeouts or permission errors to verify an AI agent's error recovery strategy and system response before real operations.

Instructions

Test the intelligent error recovery system with simulated failures.

Args: tool_name: Name of tool to simulate error for error_type: Type of error to simulate (timeout, permission_denied, network_unreachable, etc.) target: Target for the simulated test

Returns: Recovery strategy and system response

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": {
      "tool_name": "<tool_name>"
    },
    "name": "test_error_recovery"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNoexample.com
tool_nameYes
error_typeNotimeout

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.1.0

TDQS

B3.1/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 behavioral burden. It states that failures are 'simulated' (implying no real systems are harmed) and mentions the return of a 'recovery strategy and system response', but says nothing about side effects, whether the simulated error persists, required permissions, or limits on error_type values.

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 layout is clean and front-loaded: one purpose sentence followed by an Args block and a Returns block, with no filler. The Returns section is slightly redundant given an output schema exists, but otherwise every line earns its place.

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?

Parameter documentation is solid and the output schema covers return values, so an agent can construct a call. However, for a mutation-like simulation tool with zero annotations, the description omits behavioral details (side effects, whether errors are cleaned up, permissions) that would make invocation fully confident.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it does: all three parameters are explained with meaning beyond their bare titles (tool_name = tool to simulate an error for, error_type = kind of failure with examples like timeout/permission_denied/network_unreachable, target = the simulated target). It falls short of 5 because the error_type enumeration is left open-ended ('etc.') and no default behavior is described.

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?

Uses a specific verb-plus-resource ('Test the intelligent error recovery system') and adds the key qualifier 'simulated failures', so the agent knows this is a test-harness operation rather than real fault injection. It does not explicitly differentiate itself from the sibling error_handling_statistics, but the purpose is unambiguous.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no reference to alternatives such as error_handling_statistics. The word 'simulated' weakly implies a non-production testing context, but nothing tells the agent which scenarios should route here versus to another tool.

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