Skip to main content
Glama

clear_queue

Purge all messages from a Solace PubSub+ queue via SEMP v2. Runs as a dry run by default and requires confirmation before any messages are deleted.

Instructions

Delete all messages in a queue (purge). dry_run by default.

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": "clear_queue"
  }
}

Input Schema

NameRequiredDescriptionDefault
vpnYes
queueYes
brokerYes
confirmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden. It does signal that the operation is destructive and that a dry run happens by default, which is genuinely useful, but it never explains how to actually perform the purge, whether it is reversible, what permissions are required, or how 'dry_run by default' relates to the documented 'confirm' parameter.

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 short, front-loaded sentences with no filler, and the destructive nature is stated first. The 'dry_run by default' clause is however potentially misleading given that no dry_run parameter exists in the schema, so the brevity costs precision here.

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?

This is a destructive, multi-parameter tool with no annotations, no output schema, and zero parameter documentation, and the description does not fill any of those gaps. An agent still cannot determine how to move from the default dry run to an actual purge, or how broker and vpn scope the operation.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters (broker, vpn, queue, confirm), and the description only implicitly accounts for 'queue'. The phrase 'dry_run by default' does not map to any parameter name in the schema and leaves it unclear whether the purge is triggered by setting confirm=true or something else.

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 description gives a specific verb and resource: 'Delete all messages in a queue (purge)', which is clearly a destructive bulk operation rather than a config read or queue deletion. It does not, however, distinguish itself from the sibling tool literally named purge_queue, so an agent cannot tell the two apart without opening schemas.

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?

There is no when-to-use or when-not-to-use guidance, and no mention of the obvious alternative (purge_queue) or of when deleting the queue outright (delete_queue) would be preferred. The only usable hint is the implicit safety of a default dry run, which is behavioral rather than routing guidance.

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