Skip to main content
Glama

Enqueue a task

enqueue_task

Append a task to a named work queue for workers to claim. Supports priorities, delays, retries, deduplication, and dependency-gated execution.

Instructions

Append a task to a work queue (created on first use). payload is the opaque task body (often JSON) a worker reads after claiming. Optional: kind/title for triage, priority (higher runs sooner), maxAttempts (auto re-queue up to N on nack/lease-expiry), visibilityTimeoutMs (default lease), delayMs (schedule into the future), dedupeKey (collapse duplicate enqueues), and — for the goals system — goalId (tag the task to a goal) and dependsOn (task ids that must all reach done before this task becomes claimable; a DAG gate). Returns the new task id + seq.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNofree-form category for triage
queueYesqueue name (created on first enqueue)
titleNo
goalIdNogoals system: tag this task to a goal
delayMsNodelay before the task becomes claimable
payloadYesopaque task body the worker reads after claiming (often JSON)
priorityNohigher = claimed sooner (default 0)
dedupeKeyNocollapse duplicate enqueues sharing this key
dependsOnNogoals system: task ids that must all be `done` before this task is claimable (DAG gate)
maxAttemptsNore-queue up to N times (default 5)
visibilityTimeoutMsNodefault lease length per claim
Behavior5/5

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

With no annotations, the description carries full burden and excels: it discloses queue auto-creation, auto re-queue up to N on nack/lease-expiry, dedupe via dedupeKey, DAG gating via dependsOn, scheduling via delayMs, and the return of id + seq. These are meaningful behavioral traits beyond merely 'enqueue a task.'

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?

The description is a single dense sentence but each clause earns its place, covering core behavior, payload, all optional params, and return value. It could be split into multiple sentences for readability, but it's not bloated.

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?

Given 11 parameters and no output schema, the description covers the core behavior, all optional parameter meanings, the goals-system semantics (goalId, dependsOn DAG gate), and explicitly states the return value (id + seq). It is complete for an agent to invoke the tool correctly.

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

Parameters5/5

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

Even though schema coverage is 91%, the description adds value by explaining the semantics of each optional parameter in context: 'priority (higher runs sooner)', 'maxAttempts (auto re-queue up to N on nack/lease-expiry)', 'dedupeKey (collapse duplicate enqueues)', and 'dependsOn (task ids that must all reach done... a DAG gate)'. These enrich the schema's terse descriptions.

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

Purpose5/5

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

The description begins with a specific verb and resource: 'Append a task to a work queue (created on first use).' This clearly distinguishes enqueue_task from sibling tools like claim_task, ack_task, and nack_task by focusing on the write-side operation.

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?

The description provides clear context for when to use the tool (appending a task to a queue) and explains the purpose of optional parameters (triage, scheduling, dedupe, DAG dependencies). However, it does not explicitly name alternatives or state when-not-to-use scenarios, so it falls short of a 5.

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/Eyalm321/hyperpanes-mcp'

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