Skip to main content
Glama

Queue

queue

Schedule a job for a worker session to run after earlier jobs and start when the session is idle.

Instructions

Add a job that runs after the jobs before it. It starts now when the session is idle.

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

Input Schema

NameRequiredDescriptionDefault
textYes
pathsNo
sessionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the key behavioral traits of ordering ("runs after the jobs before it") and the idle-session fast path. It says nothing about whether the job persists, what happens on failure, or what the session must be, so meaningful gaps remain.

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

Conciseness5/5

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

Two short sentences, front-loaded with the definition of the operation followed by the scheduling nuance. Nothing is padded or repeated.

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?

An output schema exists, so return values need not be explained. However, for a tool whose acceptance requires a `session` and a `text` payload with zero schema documentation, the description leaves an agent guessing what those fields mean and how `paths` affects the job.

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% for three parameters, and the description never mentions `text`, `session`, or `paths`. In particular `session` and `paths` are completely undefined anywhere, so the description fails to compensate for the coverage gap.

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?

States a specific verb + resource ("Add a job") plus the sequencing semantics that define it. It is clear enough for an agent to understand the operation, but it never contrasts itself with siblings like send, steer, or create, which occupy adjacent territory.

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?

The two sentences describe how the job is scheduled (FIFO, immediate if idle) rather than when an agent should pick this tool over send/steer/create. There are no exclusions or prerequisites, so the choice between queueing and dispatching is left to inference.

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