Skip to main content
Glama
BlZvi
by BlZvi

Get Project Task Counts

asana_get_project_task_counts
Read-onlyIdempotent

Get task counts for a project broken down by completion status. Specify opt_fields like num_tasks and num_completed_tasks to receive the data.

Instructions

Get task counts for a project broken down by completion status. IMPORTANT: returns an empty object unless opt_fields specifies count fields explicitly. Always include opt_fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opt_fieldsNoRequired to get any data. Recommended: `num_tasks,num_completed_tasks,num_incomplete_tasks,num_milestones,num_incomplete_milestones`.
project_idYesThe GID of the project (numeric string, e.g. `'1234567890123'`).
Behavior5/5

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

The description discloses the surprising behavior that an empty object is returned unless opt_fields is specified, which is not covered by annotations. This adds significant value beyond the readOnly/idempotent hints.

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?

Two concise sentences: the first states the core purpose, the second delivers a crucial warning. No unnecessary words, perfectly front-loaded and scannable.

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 simple read-only tool with no output schema, the description is complete: it explains the main behavior, the requirement for opt_fields, and the breakdown by completion status. This is sufficient for an agent to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema already documents both parameters (100% coverage), but the description reinforces the critical requirement for opt_fields and provides a recommended value, going beyond the schema's static description.

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?

The description clearly states it gets task counts broken down by completion status, using a specific verb and resource. This distinguishes it from siblings like asana_get_tasks_for_project, which fetches tasks rather than counts.

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?

It provides clear context for when to use (obtaining task counts for a project) and a critical usage rule (must include opt_fields). However, it does not explicitly mention alternative tools or when not to use this tool, so it stops short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BlZvi/asana-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server