Skip to main content
Glama

Work queue

queue
Destructive

Job queue with at-least-once delivery. enqueue(payload: any JSON, optional dedupe_key/channel); claim returns job and receipt (or job null; wait_seconds up to 30); ack/release/renew need seq and the current receipt (renew defaults to the queue's visibility_seconds; dead lists up to limit, default 50). Unacked jobs return after visibility_seconds (default 60) and dead-letter after max_attempts (default 5). Make side effects idempotent; never ack before finishing.

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": {
      "action": "<action>"
    },
    "name": "queue"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
seqNo
limitNo
actionYes
channelNo
payloadNo
receiptNo
dedupe_keyNo
ttl_secondsNo
max_attemptsNo
wait_secondsNo
delay_secondsNo
visibility_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds substantial behavior they cannot express: at-least-once delivery implying duplicate delivery, redelivery after visibility_seconds (default 60), dead-lettering after max_attempts (default 5), and wait_seconds capped at 30. The idempotency advice is consistent with at-least-once semantics rather than a contradiction of idempotentHint=false. It does not disclose permission requirements or the effect of delete/touch on in-flight jobs.

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?

It is a single dense paragraph, front-loaded with the delivery contract before action-specific details, and nearly every clause carries information (defaults, bounds, sequencing rules). The semicolon-compressed phrasing ('or job null', 'dead lists up to limit') is slightly cryptic and costs a point on readability.

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

Completeness3/5

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

For an 11-action, 13-parameter tool with no output schema, the definition covers claim's return shape (job plus receipt) but leaves the return values of create, job, touch, read, and delete undefined, and does not explain how id or action interact. What is present is accurate but does not fully equip an agent to call the non-core actions correctly.

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?

Schema description coverage is 0%, so the description carries the full burden and largely meets it: it explains payload, dedupe_key, channel, seq, receipt, wait_seconds, limit (default 50 for dead), visibility_seconds, and max_attempts. Gaps remain for ttl_seconds, delay_seconds, and id, and the action enum has 11 values of which create, read, touch, and delete are never explained.

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 line ('Job queue with at-least-once delivery') names the resource and delivery contract, and the following clauses enumerate concrete operations (enqueue, claim, ack, release, renew, dead) with their key parameters. An agent can immediately tell this is a claim/ack work-queue primitive, not a generic job or lease tool. It stops short of a 5 because no sibling tool is named or explicitly excluded.

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

Usage Guidelines3/5

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

Operational guidance is present in the closing sentence ('Make side effects idempotent; never ack before finishing'), which tells the agent how to sequence claim/ack correctly. It also implies action-selection implicitly by listing which parameters belong to which action. However, nothing says when to pick this queue over related siblings such as job, lease, semaphore, or deadman, and no exclusion conditions are stated.

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.

Resources