Skip to main content
Glama

MCPGuard Remote MCP

evaluate_circuit_breaker

Evaluate AI agent run logs (JSON array or JSONL string) against hard USD/token caps and sliding-window ping-pong loop thresholds, returning deterministic exit codes (0/2/3) and per-agent spend attribution.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "evaluate_circuit_breaker"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxUsdNoHard USD cap (default: 5.0).
rawLogNoRaw JSONL or JSON array log string (alternative to records).
recordsNoArray of agent turn records.
maxTokensNoOptional hard total token cap.
maxPingPongNoUnproductive wake turns limit in window (default: 4).
pingPongWindowSecNoSliding window length in seconds (default: 300).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does usefully disclose that the tool is a deterministic evaluator returning exit codes 0/2/3 and per-agent spend attribution, which signals it is a read-only analysis rather than a mutating gate. However, it never maps the exit codes to outcomes (which code means cap exceeded vs. loop detected vs. pass) and doesn't say whether it merely reports or actually terminates a run.

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?

It is a single dense sentence with no filler, front-loading the resource and the checks it applies. It is slightly overloaded with parenthetical format detail and exit-code numbers, but every clause is relevant.

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?

For a six-parameter evaluator with no output schema, the description should decode the return contract, and the unexplained 0/2/3 exit codes are the main gap. It does cover inputs, scope, and the attribution output, so an agent could call it, but not confidently interpret the result.

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?

Schema description coverage is 100%, so each of the six parameters is already documented in the schema, and the baseline is 3. The description adds conceptual framing ('hard caps', 'sliding-window loop thresholds') that helps interpret maxPingPong and pingPongWindowSec, but gives no default values, units, or format guidance beyond what the schema already states.

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 uses a specific verb ('Evaluate') and resource ('AI agent run logs') and names the concrete checks it performs (USD/token caps, ping-pong loop thresholds). That clearly separates it from the audit_* siblings, which are config/dependency audits rather than log evaluation, though the description never explicitly contrasts itself with them.

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 statement of when to reach for this tool versus an alternative, no prerequisites, and no exclusions. Usage is only implied by the fact that it consumes run logs and caps, leaving an agent to infer intent from the name and description alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources