Skip to main content
Glama

acr_create_guardrail

Create safety guardrails that prevent runaway AI agent costs, latency overruns, and loops by setting thresholds and block, alert, or kill actions.

Instructions

Create a new safety guardrail to actively prevent runaway agent costs or loops.

Args: name: A descriptive rule name, e.g. 'Daily Max Spend' or 'Search Loop Breaker'. rule_type: Guardrail type: 'cost_limit', 'latency_limit', or 'loop_detection'. threshold: Numeric limit (e.g. 1.50 for $1.50 cost, 30.0 for 30s latency, 5 for max iterations). action: Response behavior when violated: 'block', 'alert', or 'kill'.

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": {
      "name": "<name>",
      "rule_type": "<rule_type>",
      "threshold": "<threshold>"
    },
    "name": "acr_create_guardrail"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
actionNoblock
rule_typeYes
thresholdYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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, and it does disclose meaningful behavior: what each rule_type means and what the three action values ('block', 'alert', 'kill') do when a rule is violated. It does not say whether guardrails apply globally or per-agent, whether creation is idempotent on duplicate names, what permissions are needed, or whether existing runs are affected — all material for an unannotated mutation 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?

The purpose is front-loaded in a single sentence, followed by compact per-parameter lines that each add information rather than restating the schema. The inline Args block is slightly awkward embedded in a tool description but earns its space through concrete examples.

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?

An output schema exists, so return values need not be explained, and parameter semantics are well covered. However, for an unannotated mutation tool the description omits scope (global vs. per-agent/per-workspace), duplicate handling, and permission requirements, leaving the agent without enough context to call it confidently in edge cases.

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 coverage is 0%, so the description must compensate, and the Args block does so well: it enumerates the three valid rule_type values, the three action values, gives threshold examples with concrete units tied to each rule type ('1.50 for $1.50 cost, 30.0 for 30s latency'), and shows naming conventions. Only small gaps remain, such as whether threshold units are strictly bound to rule_type.

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 first sentence states a specific verb ('Create'), a specific resource ('safety guardrail'), and the outcome it serves ('prevent runaway agent costs or loops'). It is clearly distinguishable from siblings like acr_list_guardrails or acr_get_cost_summary, though it never names an adjacent tool to route against.

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 explicit when-to-use or when-not-to-use guidance, no prerequisites, and no alternative named (e.g., when to create a guardrail versus inspecting existing ones with acr_list_guardrails). The motivating scenario in the opening sentence loosely implies usage but leaves the agent to infer the trigger conditions.

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