get_agent_activity
Get a worker's activity and reservation history for a time window, with summary statistics and explicit duration sources. Use it to assess agent productivity and availability.
Instructions
Get activity history and reservation history for a single TaskRouter worker over a time window. Includes summary statistics with explicitly labeled duration sources.
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": {
"worker_sid": "<worker_sid>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "get_agent_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | End of window (YYYY-MM-DD or ISO 8601). Interpreted in the given timezone. | |
| timezone | No | IANA timezone. Defaults to UTC. | |
| start_date | Yes | Start of window (YYYY-MM-DD or ISO 8601). Interpreted in the given timezone. | |
| worker_sid | Yes | The TaskRouter Worker SID (starts with 'WK'). |