Skip to main content
Glama

describe_task_queue

Inspect a Temporal task queue's pollers, backlog, age, and add/dispatch rates to diagnose stalled workflows or activities and detect when no worker is polling.

Instructions

Describe a task queue: which workers poll it (pollers with identity, last access time and rate) and its backlog count/age and add/dispatch rates, per task queue type. Use this first when a workflow or activity is not progressing (for example stuck at its first workflow task or with an activity never started): has_pollers is false and a warning is set when no worker is polling the queue. Works on every Temporal server, unlike list_workers.

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": {
      "task_queue": "<task_queue>"
    },
    "name": "describe_task_queue"
  }
}

Input Schema

NameRequiredDescriptionDefault
namespaceNoTemporal namespace for this operation; omit to use the server default
task_queueYesTask queue name
report_statsNoInclude backlog and rate stats (default: true)
task_queue_typeNoWhich task queue type to describe (default: all)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does it well: it explains the diagnostic signal (has_pollers is false plus a warning when nothing is polling) and the portability caveat versus list_workers. It stops short of stating that this is a read-only, non-mutating call or noting any auth/namespace requirements, which is the remaining gap.

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?

Three sentences, front-loaded with the resource description, then the diagnostic use case, then the portability caveat. Dense but every clause carries information; the parenthetical example list is slightly long but still earns its place.

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

Completeness4/5

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

No output schema and no annotations, so the description must describe the result — and it does, naming pollers, backlog count/age, add/dispatch rates, and the has_pollers warning. For a diagnostic read tool this is nearly complete; only return-shape details (e.g. formatting, pagination or size limits) are missing.

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%, so the schema already documents namespace, task_queue, report_stats and task_queue_type. The description adds only light framing — 'per task queue type' and the pairing of backlog/rate stats with report_stats. Adequate, but no syntax or default behavior is added beyond the schema.

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?

Specific verb and resource ('Describe a task queue') followed by an enumeration of what it returns: pollers with identity/last access/rate, backlog count and age, add/dispatch rates, per task queue type. It also names the sibling it differs from (list_workers), so an agent can separate the two without opening schemas.

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

Usage Guidelines5/5

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

Explicit when-to-use: 'Use this first when a workflow or activity is not progressing', with concrete symptoms (stuck at first workflow task, activity never started). It also states a selection condition against an alternative — it works on every Temporal server, unlike list_workers.

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