count_workers
Count heartbeating workers in a Temporal namespace, optionally filtered by a worker visibility query, to assess active worker capacity.
Instructions
Count heartbeating workers in the namespace, optionally filtered by a worker query. Needs worker heartbeating like list_workers; otherwise use describe_task_queue.
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": "count_workers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Worker visibility query, e.g. TaskQueue = "my-queue" | |
| namespace | No | Temporal namespace for this operation; omit to use the server default | |
| include_system_workers | No | Also count the server's internal workers (default: false) |