Skip to main content
Glama
AIops-tools

queue-aiops

set_policy

Create or update RabbitMQ policies with dry-run preview and automatic undo to ensure reversible changes.

Instructions

[WRITE][risk=medium] Create/update a rabbitmq policy; reversible.

Reads the policy first: the recorded undo restores the prior policy fields, or deletes the policy when it is newly created. Pass dry_run=True to preview.

Args: vhost: The policy's vhost (the default vhost is '/'). name: Policy name. pattern: Regex the policy matches queue/exchange names against. definition: Policy definition object (e.g. {'max-length': 100000}). priority: Policy priority (higher wins; default 0). apply_to: 'queues', 'exchanges', or 'all' (default). dry_run: If True, preview without changing. target: rabbitmq target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
vhostYes
targetNo
dry_runNo
patternYes
apply_toNoall
priorityNo
definitionYes
Behavior5/5

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

The description discloses that the tool reads the policy first, records an undo, restores prior fields or deletes the policy if newly created, and supports dry_run. This is rich behavioral transparency, especially given no formal annotations exist to provide this context.

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 well-structured with a summary line, behavior notes, and a clear Args list. It is appropriately sized for the tool's complexity and contains no unnecessary sentences; every part adds value.

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?

The description covers the tool's purpose, behavior, parameters, and edge cases such as new vs existing policies and dry_run. Given the lack of an output schema and annotations, it provides all essential context an agent needs to invoke this tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Every parameter is explained with semantics, defaults, examples, and the special meaning of the target parameter. The description fully compensates for the 0% schema coverage by providing essential details beyond the raw schema fields.

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 the tool creates or updates a RabbitMQ policy, using a specific verb and resource. It also explains the reversibility and the difference from deletion, effectively distinguishing it from sibling tools like delete_policy.

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

Usage Guidelines4/5

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

The description clearly implies the tool is for creating/updating policies and mentions dry_run for previewing, which gives solid usage context. It does not explicitly mention alternative tools or when-not-to-use, though the clarity of the purpose largely compensates.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AIops-tools/Queue-AIops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server