Skip to main content
Glama

Ferrite

Remove a queue's dead letters

remove_dead_letters
DestructiveIdempotent

Remove a queue service's dead letters: ids, or all, one of the two. The bytes come back at once, so a queue refused for its volume_mib takes writes again. An id not dead now is passed over and not counted, so a live message is never removed. Removing the message an ordered key died on BRINGS THE KEY BACK: its later messages resume in order, with a gap where the removed number was, and came_back says how many per key; it can be none, since messages delivered together spend their attempts together. all takes up to 16000 in one call: call it again while remaining is above 0.

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": {
      "app": "<app>",
      "service": "<service>"
    },
    "name": "remove_dead_letters"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNo
appYes
idsNo
tokenNofallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused
serviceYesThe queue service, as your spec names it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=true, yet the description adds real substance: omitted non-dead ids are silently skipped so live messages are never removed, ordered keys revive with a gap, and `came_back` may legitimately be zero for co-delivered messages. These are non-obvious mutation semantics beyond what the annotations state.

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?

Purpose is front-loaded and each sentence covers a distinct behavior (input mode, storage freed, id skipping, ordered-key revival, bulk pagination). The phrasing is dense to the point of being cryptic in places ('The bytes come back at once'), but little is wasted.

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

Completeness5/5

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

For a destructive mutation with no output schema, the description supplies what an agent needs: input-mode exclusivity, silent-skip safety guarantee, ordered-key side effects, response fields (`came_back`, `remaining`), and a bulk-loop instruction. Nothing essential to calling it correctly is absent.

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

Parameters4/5

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

With only 40% schema coverage, the description carries weight and does: it documents the mutual exclusivity of `ids` and `all` (not expressed in the schema), the skip semantics of non-dead ids, and the 16000-per-call ceiling for `all` versus the schema's 1000-item cap on `ids`. It says nothing about `token` or `app`, leaving those to the schema.

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 opening sentence names a specific verb and resource ('Remove a queue service's dead letters') and immediately clarifies the two input modes. It does not explicitly contrast with the sibling `dead_letters` (presumably the read counterpart), so an agent must infer that distinction from the verb.

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 clear operational guidance: choose exactly one of `ids` or `all`, and re-invoke while `remaining` is above 0 for bulk clears. What is missing is explicit routing guidance such as inspecting with `dead_letters` first, or when removal is preferred over resume.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.