Skip to main content
Glama

generate_guardrail_rules

Compile plain-English policy into valid guardrail.yaml (uses AI Copilot).

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": {
      "description": "<description>"
    },
    "name": "generate_guardrail_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
descriptionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations provided, the description carries the full disclosure burden. It does add one genuinely useful behavioral fact — the result is generated via AI Copilot, signaling non-determinism and a possible dependency on Copilot availability. It does not say whether a file is written to disk or content is merely returned, nor whether the output is validated before return.

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?

One short sentence with the action and result front-loaded and the Copilot caveat parenthetically attached. There is no filler or redundancy.

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

Completeness4/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 no explanation, and with one required parameter the surface area is small. The remaining gap is minor: no mention of prerequisites (Copilot access) beyond the parenthetical and no statement of whether the generated YAML is persisted or only returned.

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 0% and the single parameter is undocumented in the schema, so the description must compensate. 'Plain-English policy' does clarify that the 'description' parameter expects natural-language policy text rather than YAML or a path, which is real added meaning, but it says nothing about length limits, formatting expectations, or examples.

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 ('Compile') and names both input and output artifacts ('plain-English policy' into 'valid guardrail.yaml'), which is far more informative than the tool name alone. It does not explicitly contrast itself with siblings like get_default_rules or suggest_fix, but the artifact-producing nature of the verb makes the distinction reasonably clear.

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

Usage Guidelines3/5

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

The phrase 'plain-English policy' implies the tool should be used when the user has prose rather than an existing rules file, which hints at when it applies. However, it never states when not to use it, nor does it point to get_default_rules or scan_code as alternatives, so the agent must infer routing.

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.