Skip to main content
Glama

Check whether surge containment is holding your work

ratchet_get_circuit
Read-onlyIdempotent

Call this when a begin returned "approval_required" or "denied" and the reason mentions a circuit breaker. A breaker opens when an effect type is being performed far more often than its configured hourly ceiling — usually because something is looping.

What to do with the answer:

  • If a breaker is open, STOP creating effects of that type. Retrying will not help and each attempt is recorded.

  • resets_at tells you when it closes itself. If it is null, a human opened it deliberately and only a human will close it — do not wait, and do not poll.

  • Report the reason to your operator and stop. Do not attempt to work around it by renaming the effect type, splitting the work across keys, or using a different idempotency key: that defeats a safety control that exists to protect the people your actions reach.

  • effect_type "*" means every effect type in the workspace is stopped.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already mark the tool as readOnly, idempotent, and non-destructive. The description adds valuable behavioral context beyond annotations, including why breakers open, what resets_at null means (human-opened breaker), and what effect_type '*' signifies. This gives the agent enough understanding to interpret results safely.

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 front-loaded with the exact trigger condition and organized into scannable bullet points. Each bullet provides actionable, non-redundant guidance. The length is justified because the tool guides critical safety behavior around circuit breakers.

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

Completeness5/5

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

For a read-only, zero-parameter tool with no output schema, the description covers everything an agent needs: when to call, how to interpret key response fields, what actions to take, and what not to do. The additional safety context about human-opened breakers and wildcard effect_type makes it complete for safe invocation.

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?

The input schema has zero parameters, so the baseline is 4. The description does not need to explain parameters, but it does clarify important response semantics like resets_at and effect_type '*', which indirectly helps the agent understand what information the tool returns. There is no parameter ambiguity to resolve.

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 this tool is for checking circuit breaker status after a begin call returns 'approval_required' or 'denied' with a breaker-related reason. It distinguishes this from siblings by focusing on the circuit breaker concept and its operational implications. The title also reinforces a specific, check-only purpose.

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

Usage Guidelines5/5

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

The description explicitly says when to call: 'Call this when a begin returned "approval_required" or "denied" and the reason mentions a circuit breaker.' It also provides strong when-not guidance, such as 'Retrying will not help' and 'do not wait, and do not poll' when resets_at is null, plus explicit prohibitions against workarounds.

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.