Skip to main content
Glama
adamhancock

BullMQ MCP Server

by adamhancock

clean_queue

Remove completed or failed jobs from a BullMQ queue, with configurable grace period and maximum count.

Instructions

Clean jobs from queue

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
graceNoGrace period in milliseconds
limitNoMaximum number of jobs to clean
queueYesQueue name
statusNoJob status to cleancompleted
Behavior2/5

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

No annotations provided, so the description must fully disclose behavior. It only says 'Clean jobs from queue' without mentioning that it likely deletes jobs, the effect of parameters like grace and limit, or that the operation may be irreversible. The agent cannot infer safety or side effects.

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

Conciseness2/5

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

The description is extremely concise (4 words) but lacks structure and substance. It is not a complete sentence that provides context; it is just a phrase. While brevity is good, this is under-specification, not effective conciseness.

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?

Given 4 parameters, one required, and a list of many sibling tools, the description is critically incomplete. It does not explain the cleaning semantics, the effect of parameters like grace and limit, or what return value to expect. No output schema exists, so the description should compensate but fails.

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 coverage is 100%, with each parameter described in the schema. The description adds no additional meaning beyond what is already in the schema. Baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Clean jobs from queue' uses a vague verb 'clean' that could mean remove, purge, or archive. It identifies the resource (queue) but does not specify the precise action. Compared to sibling tools like drain_queue or remove_job, the purpose is somewhat clear but lacks specificity.

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 use this tool versus alternatives. For example, when one should use clean_queue instead of drain_queue or remove_job is not mentioned, leaving the agent with no contextual decision support.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adamhancock/bullmq-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server