Count Tasks by Status
clickup_count_tasks_by_statusCount ClickUp tasks in a list by status to support reporting and analytics; optionally filter by specific statuses and include archived or closed tasks.
Instructions
Count tasks in a list, optionally filtered by status.
This tool handles pagination internally and returns counts efficiently. It's optimized for counting tasks by status, which is useful for lead tracking, status reporting, and analytics.
Args:
list_id (string): The list ID to count tasks in
statuses (string[], optional): Filter by specific status names. If omitted, returns counts for all statuses
archived (boolean): Include archived tasks (default: false)
include_closed (boolean): Include closed tasks (default: false)
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: For JSON format: { "total": number, "by_status": { "status_name": count, ... } }
Examples:
Use when: "Count all tasks in list 123456"
Use when: "How many tasks have status '#1 - phone call' in list 123456?"
Use when: "Get counts for all statuses in this list"
Error Handling:
Returns "Error: Resource not found" if list_id is invalid (404)
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": {
"list_id": "<list_id>"
},
"name": "clickup_count_tasks_by_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | List ID | |
| archived | No | Include archived tasks | |
| statuses | No | Filter by specific status names. If omitted, returns counts for all statuses | |
| include_closed | No | Include closed tasks | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |