Skip to main content
Glama

count_tasks

Read-onlyIdempotent

Count tasks matching specified filters and return a total count with a breakdown by status. Quickly find out how many tasks meet criteria without fetching full details.

Instructions

Count tasks matching filters without returning the full list. Fast 'how many' queries that return a total plus a breakdown by status. Uses the same filters as filter_tasks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flaggedNoOnly count flagged (true) or unflagged (false) tasks
overdueNoOnly count overdue tasks
dueTodayNoOnly count tasks due today
tagFilterNoOnly count tasks with these tags
searchTextNoOnly count tasks whose name or note contains this text
taskStatusNoFilter by task status: Available, Next, Blocked, DueSoon, Overdue, Completed, Dropped
dueThisWeekNoOnly count tasks due this week
perspectiveNoScope: 'inbox', 'flagged', or 'all' (default: all)
plannedTodayNoOnly count tasks planned for today
exactTagMatchNoRequire exact tag name match (default: false)
projectFilterNoOnly count tasks in projects whose name contains this text
completedTodayNoOnly count tasks completed today
plannedThisWeekNoOnly count tasks planned for this week
completedThisWeekNoOnly count tasks completed this week
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint. Description adds 'fast' and 'returns total plus breakdown by status', enhancing transparency beyond annotations.

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 front-loading core purpose. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 14 optional parameters, description explains return type (total + breakdown by status) adequately. Could mention status breakdown explicitly but does so.

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 coverage is 100% with detailed parameter descriptions. Description only states 'Uses same filters as filter_tasks', adding no new parameter meaning beyond schema.

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?

Description clearly states the tool counts tasks matching filters without returning full list. It specifies 'fast how many queries returning total plus breakdown by status', distinguishing it from filter_tasks.

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?

Implicitly tells when to use (when counts are needed) and references filter_tasks as alternative. Lacks explicit when-not-to-use but context is clear.

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/jqlts1/omnifocus-mcp-enhanced'

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