Skip to main content
Glama
Diogenes Agent Guardrails & Command Sandbox MCP

Diogenes Agent Guardrails & Command Sandbox MCP

agent_loop_circuit_breaker

Analyzes recent tool-call traces to detect cyclic retries, A/B deadlocks, and runaway token burn, then trips a circuit breaker to stop the agent loop.

Instructions

Analyzes recent tool-call traces to trip a circuit breaker on cyclic retries, A/B deadlocks, and runaway token burn.

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": {
      "recent_action_trace": "<recent_action_trace>"
    },
    "name": "agent_loop_circuit_breaker"
  }
}

Input Schema

NameRequiredDescriptionDefault
recent_action_traceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and leaves the most important trait ambiguous: 'to trip a circuit breaker' could mean it actually halts execution (a side-effecting action) or merely returns a recommendation. It also omits thresholds, cost, and whether anything is mutated. This ambiguity matters a lot for a breaker-style tool.

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?

A single dense sentence with the purpose and the detection targets front-loaded and no wasted words. It loses a point only because cramming three detection cases into one clause makes the conditions slightly harder to parse than separate sentences would.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No annotations, no output schema, an undocumented parameter structure, and unresolved ambiguity about whether the tool acts or advises. For a tool whose whole purpose is to make a stop/continue decision on an agent loop, the description leaves critical operational details unaddressed.

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% and there is one required parameter, 'recent_action_trace'. The description's mention of 'recent tool-call traces' loosely maps to it, but the shape of the array items (untyped objects) and the expected trace fields are documented nowhere in either schema or description.

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?

Names a specific verb ('Analyzes') and resource ('recent tool-call traces') and enumerates its detection targets: cyclic retries, A/B deadlocks, runaway token burn. That is enough to distinguish it from the sibling firewalls (scrub_pii_firewall, tool_output_firewall) and guards, though it never explicitly names an alternative to route away from.

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?

The description gives no when-to-use guidance, no prerequisites, and no exclusions. It does not say whether this should be called before or after a suspicious loop, or how it relates to guardrail_verify or mcp_sampling_guard. Usage must be inferred entirely from the name.

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