Skip to main content
Glama

list_policies

Read-only

List RabbitMQ policies by vhost or all vhosts to inspect pattern, priority, and definition; detect truncated results when the set is incomplete.

Instructions

[READ] Policies (optionally one vhost) with pattern, priority, definition.

Args: vhost: Restrict to one vhost (the default vhost is '/'); omit for all. target: rabbitmq target name from config; omit for the default.

Returns an envelope: {"policies": [...], "returned": N, "limit": L, "truncated": bool}. When "truncated" is true there is more than was returned — do not treat this as the complete set.

Input Schema

NameRequiredDescriptionDefault
vhostNo
targetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.9/5.0
Behavior4/5

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

readOnlyHint=true already declares the safety profile, but the description goes further by documenting the return envelope shape and, critically, the 'truncated' flag semantics ('do not treat this as the complete set'). That truncation warning is genuinely useful context beyond annotations.

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?

Front-loads purpose, then Args, then Returns — a clean structure where each block earns its place. Slightly verbose in the returns section but no wasted sentences.

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 list tool with two optional params and no output schema, the description covers both parameters and the response envelope including pagination/truncation behavior. Nothing an agent needs to call it correctly is missing.

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 carry the load — and it does, clarifying that vhost defaults to '/' and that target is a 'rabbitmq target name from config' omitted for the default. This is meaningful semantics the bare schema lacks.

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?

States a specific verb+resource ('Policies') and enumerates the returned fields (pattern, priority, definition), with a '[READ]' marker that separates it from set_policy/delete_policy by implication. It never explicitly names a sibling, so it falls just short of full differentiation.

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 Args section implies usage context ('omit for all', 'omit for the default'), giving basic guidance on scope selection. However, it never tells the agent when to choose this over sibling tools like list_queues or set_policy, so usage is only implied.

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