Skip to main content
Glama

Count Tasks by Status

clickup_count_tasks_by_status
Read-onlyIdempotent

Count 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

NameRequiredDescriptionDefault
list_idYesList ID
archivedNoInclude archived tasks
statusesNoFilter by specific status names. If omitted, returns counts for all statuses
include_closedNoInclude closed tasks
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.6

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, and open-world, so the bar is lower. The description still adds real value beyond them: internal pagination handling, default behavior for archived/include_closed/statuses, and a specific 404 error string.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and the pagination note, which is good. However, the Args block duplicates the fully-covered schema verbatim, and the Returns/Examples blocks push the definition well past what is needed for a five-parameter counting tool.

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?

With no output schema, the description compensates by spelling out the exact return shape (total plus by_status map) and the JSON-vs-markdown split, and it adds an error case. Nothing an agent needs to call and interpret this tool is 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 description coverage is 100%, so the schema already documents all five parameters including the response_format enum and defaults. The Args section largely restates that, adding only the "returns counts for all statuses if omitted" nuance, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Uses a specific verb+resource ("Count tasks in a list") plus a scope qualifier ("optionally filtered by status"). The counting verb inherently distinguishes it from sibling list/search tools like clickup_get_tasks or clickup_search_tasks, though no sibling is named explicitly.

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

Usage Guidelines4/5

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

Provides three concrete "Use when" examples covering all-tasks, single-status, and all-statuses cases, plus a named use-case class (lead tracking, status reporting, analytics). It does not state when to prefer get_tasks or search_tasks instead, so it stops short of a full when/when-not treatment.

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