Skip to main content
Glama

list_workers

List running Temporal workers in a namespace using heartbeat data, including identity, host, task queue, SDK, deployment version, and last heartbeat; paginate with the returned token.

Instructions

List running workers in the namespace from their heartbeats (instance key, identity, host, task queue, SDK, deployment version, last heartbeat), as on the Temporal UI Workers page. Needs a server with worker heartbeating enabled; otherwise returns a not_supported error, so use describe_task_queue to see a queue's pollers instead. Paginate by passing the returned next_page_token back.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_workers"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoWorker visibility query, e.g. TaskQueue = "my-queue"
namespaceNoTemporal namespace for this operation; omit to use the server default
page_sizeNoMaximum number of workers per page (server default if omitted)
next_page_tokenNoOpaque token from a previous list_workers call
include_system_workersNoAlso list the server's internal workers (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses the enabling requirement for worker heartbeats, the not_supported error path, and the pagination contract of feeding next_page_token back in. It stops short of describing authorization requirements or the eventual-consistency nature of heartbeat-derived data, so it is strong but not exhaustive.

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?

Three sentences, each front-loaded with its most important clause: what is listed and what fields come back, then the precondition and fallback, then pagination. No filler or restatement of the tool name.

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?

For a five-parameter, read-only listing tool with no annotations and no output schema, the description supplies the return-field inventory, the runtime precondition, the error behavior, and the pagination procedure. An agent can decide whether to call it and how to page through results without any additional information.

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 meaning of query, namespace, page_size, next_page_token, and include_system_workers is already documented in the schema, establishing the baseline of 3. The description adds only the pagination loop hint about next_page_token and does not clarify query syntax or scoping beyond what the schema states.

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?

States a specific verb and resource ("List running workers in the namespace from their heartbeats") and enumerates the returned fields (instance key, identity, host, task queue, SDK, deployment version, last heartbeat), anchoring it to a known reference ("as on the Temporal UI Workers page"). This makes it clearly distinguishable from polling-oriented siblings like describe_task_queue.

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?

Gives an explicit prerequisite (server must have worker heartbeating enabled), the failure mode and fallback when it is not ("returns a not_supported error, so use describe_task_queue to see a queue's pollers instead"), plus operational guidance for pagination. When-to-use, when-not-to-use, and the alternative are all spelled out rather than implied.

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