Skip to Content
AI agents (MCP)Tools reference

MCP tools reference

Every tool takes a connection parameter: the name of a connection saved in RabbitGUI (case-insensitive) or its id. Most tools also accept an optional vhost, which defaults to the default virtual host of the connection, or /.

The Access column shows the minimum access level the connection needs. Tools marked destructive also ask for your approval in RabbitGUI when confirmations are enabled.

Connections and topology

ToolAccessWhat it does
list_connectionsReadLists the connections shared with agents, with their host, default vhost and access level. Never returns credentials.
get_overviewReadCluster name, RabbitMQ and Erlang versions, object counts, total ready and unacknowledged messages, publish / deliver / ack / redeliver rates, listeners, and node memory and disk alarms.
list_vhostsReadVirtual hosts with their message counts and default queue type.
list_queuesReadQueues with depth, ready and unacked counts, consumers, rates and dead-letter exchange. Filters: vhost, nameContains, minMessages, noConsumers. Sorting: messages, publishRate, consumers or name, with a limit (50 by default).
get_queueReadEverything about one queue: depth, rates, consumers and their prefetch, bindings, arguments, effective policy and dead-letter configuration.
list_exchangesReadExchanges with their type, flags, arguments and rates. System exchanges are hidden unless includeSystem is set.
list_bindingsReadBindings, optionally only those from an exchange or to a queue.
list_policiesReadPolicies and operator policies.

Insights

ToolAccessWhat it does
estimate_drain_timeReadEstimates when a queue will be empty with the same linear regression as the drain time forecast. Returns the state (draining, empty, stable or growing), the rate in messages per second, the ETA, the time left and the fit quality.
health_reportReadRuns the health report on the whole connection or one vhost and returns the ranked findings. includeQueues also returns the per-queue metrics and forecasts.
trace_routeReadSimulates a publish: given an exchange, a routingKey and optional headers, lists the queues that would receive the message through direct, topic, fanout and headers exchanges, exchange-to-exchange bindings and alternate exchanges, and where each queue would dead-letter it. Nothing is published.
sample_trafficReadSpies on the messages routed to a queue for a few seconds (10 by default, 60 at most) without consuming them, like spy on live queues, then returns the rate, counts by exchange, routing key and content type, and a few sample messages. Requires an AMQP connection string on the connection.

Dead-letter queues and messages

These tools work on messages that were first extracted into RabbitGUI’s local store, exactly like the dead-letter management features of the app. Extracted messages are visible in the Consume tab of the queue.

ToolAccessWhat it does
extract_messagesRead (requeue), destructive (remove)Copies messages from a queue into RabbitGUI. requeue (default) peeks up to 1,000 messages and leaves them in the queue. remove drains the queue into RabbitGUI. Waits up to about 20 seconds, then returns the progress.
job_statusReadProgress of the extract or republish job running on a queue, and the number of stored messages.
message_facetsReadCounts the extracted messages by exchange, routing key, delivery mode, delivery count, first and last death reason, queue and exchange, and content type. The best first step to understand a dead-letter queue.
query_messagesReadPages through the extracted messages, newest first, with filters. Bodies are truncated to maxBodyChars (500 by default).
get_messageReadOne extracted message in full: body, properties, headers and x-death history.
republish_messagesWrite, destructiveRepublishes extracted messages, selected by ids or filters, to their first death exchange (default), last death exchange, original exchange, or a custom exchange, with an optional custom routing key and a ratePerSecond throttle. Messages still in the source queue are removed from it. Use dryRun to see how many messages would go to each exchange.
delete_messagesWrite (destructive with removeFromQueue)Deletes extracted messages from RabbitGUI, and optionally their copies in the queue.

Filters

message_facets, query_messages, republish_messages and delete_messages accept a filters object. Each field is a list of accepted values, combined with OR inside a field and with AND between fields. Use "<null>" to match a missing value.

{
  "firstDeathReason": ["rejected"],
  "firstDeathQueue": ["orders"],
  "payloadContains": "timeout"
}

Available fields: payloadContains, exchange, routingKey, deliveryMode, deliveryCount, firstDeathExchange, firstDeathQueue, firstDeathReason, lastDeathExchange, lastDeathQueue, lastDeathReason, contentType.

Write operations

ToolAccessWhat it does
publish_messageWritePublishes a message to an exchange, with optional headers and properties. Recorded in the publish history of RabbitGUI.
create_queueWriteDeclares a classic, quorum or stream queue, with optional dead-letter exchange, routing key, message TTL, max length and delivery limit.
create_bindingWriteBinds a queue or an exchange to an exchange.
delete_bindingDestructiveRemoves a binding.
purge_queueDestructiveDeletes all ready messages of a queue.
delete_queueDestructiveDeletes a queue and its messages.

Prompts

The server also provides a triage_dlq prompt. In clients that support MCP prompts (for example as a slash command in Claude Code), it asks the agent to investigate a dead-letter queue step by step: extract the messages without removing them, group them by death reason and origin, read a few messages per group, explain the likely cause, show a republish dry run for the safe groups, and wait for your go-ahead before republishing anything.