Skip to main content
Glama

List RabbitMQ Policy

rabbitmq_policies_list
Read-onlyIdempotent

List RabbitMQ policies to retrieve each policy's vhost, name, pattern, applyTo, priority, and definition; use the returned vhost and name to fetch policy details.

Instructions

List RabbitMQ Policy

Returns an unpaginated items array containing vhost, name, pattern, applyTo, priority and definition. Use the returned vhost and name with rabbitmq_policy_get; unsupported engines return 409 and missing clusters return 404.

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": {
      "cluster": "<cluster>"
    },
    "name": "rabbitmq_policies_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
clusterYesManaged cluster name; the RBAC object is namespace/cluster.
namespaceNoNamespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter.

Output Schema

NameRequiredDescriptionDefault
itemsYes
operationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / $defs / NamespaceName
      Removed value: -{
      -  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      -  "maxLength": 32,
      -  "minLength": 2,
      -  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      -  "type": "string"
      -}
    • addedInput schema / $defs / NamespaceName_depth16
      Added value: +{
      +  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      +  "maxLength": 32,
      +  "minLength": 2,
      +  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      +  "type": "string"
      +}
    • addedInput schema / properties / cluster / description
      Added value: +"Managed cluster name; the RBAC object is namespace/cluster."
    • changedInput schema / properties / namespace / $ref
      Previous value: -"#/$defs/NamespaceName"New value: +"#/$defs/NamespaceName_depth16"
    • addedInput schema / properties / namespace / description
      Added value: +"Namespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "RabbitMQPolicy_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "applyTo": {
      +          "enum": [
      +            "all",
      +            "queues",
      +            "exchanges",
      +            "classic_queues",
      +            "quorum_queues",
      +            "streams"
      +          ],
      +          "type": "string"
      +        },
      +        "definition": {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "pattern": {
      +          "type": "string"
      +        },
      +        "priority": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "vhost": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "vhost",
      +        "name",
      +        "pattern",
      +        "applyTo",
      +        "priority",
      +        "definition"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "items": {
      +      "items": {
      +        "$ref": "#/$defs/RabbitMQPolicy_depth15"
      +      },
      +      "type": "array"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "items"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description earns credit for adding traits those annotations cannot express: the result is explicitly unpaginated, unsupported engines return 409, and missing clusters return 404. These are concrete operational facts an agent needs before interpreting an error response.

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?

Three short sentences with no filler: the return contract first, the follow-up call second, the error conditions third. The only waste is the leading line echoing the title.

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?

With an output schema present the description needn't document return fields in depth, yet it does summarize them, and it covers the failure modes (409, 404) that the schema cannot. The one gap is scope: it never states whether the listing spans all namespaces or is confined to the cluster, which the namespace parameter makes relevant.

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 100%, so both the cluster pattern and the lengthy namespace semantics are fully documented in the schema itself. The description adds nothing about how cluster or namespace constrain the listing, only mentioning vhost and name as return values, so the baseline 3 applies.

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 clear verb+resource (list RabbitMQ policies) and the body specifies the returned shape: an unpaginated items array with vhost, name, pattern, applyTo, priority and definition. The opening line largely restates the title, so the distinguishing detail comes from the second sentence rather than the first, but an agent can still tell this apart from rabbitmq_policy_get.

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 description routes the agent forward by telling it to use the returned vhost and name with rabbitmq_policy_get, which implies this is the enumeration step before a single-object fetch. It offers no explicit when-not guidance and does not address the similarly named rabbitmq_operator_policies_list, leaving the choice between list variants to inference.

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

Deploy Server

Other Tools