Skip to main content
Glama

count_tasks

Read-onlyIdempotent

Count tasks matching your filters, returning a total and status breakdown. Get quick 'how many' answers without fetching the full task list.

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)
createdAfterNoOnly count tasks created strictly after this date/time (ISO format)
plannedTodayNoOnly count tasks planned for today
createdBeforeNoOnly count tasks created strictly before this date/time (ISO format)
exactTagMatchNoRequire exact tag name match (default: false)
modifiedAfterNoOnly count tasks last modified strictly after this date/time (ISO format)
projectFilterNoOnly count tasks in projects whose name contains this text
completedTodayNoOnly count tasks completed today
modifiedBeforeNoOnly count tasks last modified strictly before this date/time (ISO format)
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=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds useful behavioral context beyond annotations by stating it is 'fast' and describing the return shape ('total plus a breakdown by status'). No contradictions or hidden behaviors are omitted.

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?

The description consists of two tightly packed sentences. The first sentence states the core purpose (count without full list), the second adds speed and output details. No wasted words; every phrase contributes to understanding.

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?

For a tool with 18 parameters and no output schema, the description covers the essential context: purpose, usage distinction from filter_tasks, and high-level return shape. The annotations handle safety, and the schema handles parameter details. Minor omissions like explicit note about zero-result behavior are not critical, so it's nearly complete.

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?

The input schema provides 100% parameter coverage with descriptions for all 18 properties, so the baseline is 3. The description adds no additional parameter-specific meaning beyond referencing that it 'uses the same filters as filter_tasks,' which is a usage hint rather than parameter semantics. Thus, it neither improves nor degrades the schema's clarity.

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 a specific verb ('Count tasks matching filters') and resource ('tasks'), and distinguishes the tool from siblings like filter_tasks by explicitly noting it does not return the full list. It also mentions the output (total plus breakdown by status), making the purpose unambiguous.

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?

The description indicates usage for 'fast how many queries' and notes that it uses the same filters as filter_tasks, implying filter_tasks is the alternative for retrieving full lists. However, it doesn't explicitly state 'when not to use' scenarios or name alternatives like get_tasks, so it falls just short of the highest guideline clarity.

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