Skip to main content
Glama

get_queue_stats

Retrieve queue message counts, consumer counts, and spool usage for a specified broker, VPN, and queue to monitor backlog and capacity.

Instructions

Queue statistics: message count, consumer count, spool usage.

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": {
      "broker": "<broker>",
      "vpn": "<vpn>",
      "queue": "<queue>"
    },
    "name": "get_queue_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
vpnYes
queueYes
brokerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It implies a read-only lookup but says nothing about permissions, whether the broker must be online, error behavior for missing queues, or the shape/cost of the response.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely short with zero waste and the resource is front-loaded, but it is a sentence fragment that omits essential detail rather than a tight, complete statement. Brevity here costs information rather than earning its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations, no output schema, and undocumented required parameters, the description is too thin for a tool that needs broker/vpn/queue addressing. An agent could guess, but would likely need trial and error on the identifier formats.

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

Parameters1/5

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

All three parameters (broker, vpn, queue) have 0% schema description coverage and the description adds no meaning beyond the word 'queue' — nothing explains that broker and vpn together address the queue, or what format identifiers take. This is the significant gap for a 3-required-param tool.

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?

Names a specific resource (queue statistics) and enumerates the metrics returned: message count, consumer count, spool usage. That distinguishes it from get_broker_stats and get_vpn_stats by scope, though the verb is only implied by the title-cased noun phrase.

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

Usage Guidelines2/5

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

No guidance on when to call this instead of get_broker_stats, get_vpn_stats, or the list_* tools, and no stated prerequisites such as needing an existing queue or broker connectivity. The agent must infer the usage context entirely.

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