Skip to main content
Glama

Get RabbitMQ OperatorPolicy

rabbitmq_operator_policy_get
Read-onlyIdempotent

Retrieve a RabbitMQ OperatorPolicy to inspect its vhost, pattern, applyTo, priority, and definition for a selected cluster.

Instructions

Get RabbitMQ OperatorPolicy

Returns vhost, name, pattern, applyTo, priority and definition for the selected resource. Obtain the vhost and name strings from rabbitmq_operator_policies_list; 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>",
      "vhost": "<vhost>",
      "name": "<name>"
    },
    "name": "rabbitmq_operator_policy_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesNonempty policy-name string from rabbitmq_operator_policies_list; select it together with its vhost string.
vhostYesRaw virtual host name, encoded exactly once as a path segment on the wire. The default host / is %2F; the literal name %2F is %252F.
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
nameYes
vhostYes
applyToYes
patternYes
priorityYes
definitionYes
operationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 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."
    • addedInput schema / properties / name / description
      Added value: +"Nonempty policy-name string from rabbitmq_operator_policies_list; select it together with its vhost string."
    • 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."
    • addedInput schema / properties / vhost / description
      Added value: +"Raw virtual host name, encoded exactly once as a path segment on the wire. The default host / is %2F; the literal name %2F is %252F."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "applyTo": {
      +      "enum": [
      +        "all",
      +        "queues",
      +        "exchanges",
      +        "classic_queues",
      +        "quorum_queues",
      +        "streams"
      +      ],
      +      "type": "string"
      +    },
      +    "definition": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    },
      +    "pattern": {
      +      "type": "string"
      +    },
      +    "priority": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "vhost": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "vhost",
      +    "name",
      +    "pattern",
      +    "applyTo",
      +    "priority",
      +    "definition"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds genuine behavioral value with the 409/404 error semantics for unsupported engines and missing clusters. It does not add anything about permissions or response shape beyond the field list, so it is a modest but real supplement.

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?

Two sentences, front-loaded with the return contract and followed by the prerequisite and error behavior; nothing is padded. The opening repeats the title verbatim, which is slightly wasteful but harmless.

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 need not explain return values, and it nonetheless names the key fields. Prerequisite sourcing and the two relevant error codes are covered, and the complex namespace parameter is fully handled by the schema. An agent has enough to call this correctly.

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%, and the schema already documents the vhost encoding rules, the cluster name pattern, and the namespace fallback behavior in detail. The description's note that vhost and name come from rabbitmq_operator_policies_list largely restates what the schema's own parameter descriptions say. Baseline 3 is appropriate when the schema carries this much weight.

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 definition pairs a specific verb ('Get') with a specific resource ('RabbitMQ OperatorPolicy') and enumerates the returned fields (vhost, name, pattern, applyTo, priority, definition), which distinguishes it from the list sibling and from the plain rabbitmq_policy_get. It stops short of explicitly contrasting OperatorPolicy with the regular policy resource, so an agent must infer that distinction from the resource name alone.

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?

It gives a concrete prerequisite path: obtain the vhost and name strings from rabbitmq_operator_policies_list, which tells the agent which tool to call first. It also documents failure conditions (409 for unsupported engines, 404 for missing clusters) but offers no explicit when-not-to-use guidance, such as when the plain policy getter is the right call instead.

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