Skip to main content
Glama

filter_tasks

Read-onlyIdempotent

Filter OmniFocus tasks by status, dates, projects, tags, search, and more. Expand subtask trees to include related items. Get precise task lists.

Instructions

Advanced task filtering by status, dates, projects, tags, search, and more, with optional subtask-tree expansion

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of tasks to return (default: 100)
cursorNoOpaque continuation cursor returned by a previous filter_tasks page
sortByNoSort results by field
flaggedNoFilter by flagged status
hasNoteNoFilter tasks that have notes
inInboxNoFilter tasks in inbox
overdueNoShow overdue tasks only
dueAfterNoShow tasks due strictly after this date/time (ISO format: YYYY-MM-DD or full ISO)
dueTodayNoShow tasks due today
dueBeforeNoShow tasks due strictly before this date/time (ISO format: YYYY-MM-DD or full ISO)
sortOrderNoSort order (default: asc)
tagFilterNoFilter by tag name(s). Can be single tag or array of tags
deferAfterNoShow tasks with defer date strictly after this date/time (ISO format: YYYY-MM-DD or full ISO)
deferTodayNoShow tasks deferred to today
outputModeNoOutput detail: detailed (default) or compact for broad planning queries
searchTextNoSearch in task names and notes
taskStatusNoFilter by task status. Can specify multiple statuses
deferBeforeNoShow tasks with defer date strictly before this date/time (ISO format: YYYY-MM-DD or full ISO)
dueThisWeekNoShow tasks due this week
estimateMaxNoMaximum estimated minutes
estimateMinNoMinimum estimated minutes
hasEstimateNoFilter tasks that have time estimates
perspectiveNoLimit search to specific perspective: inbox, flagged, all tasks
createdAfterNoShow tasks created strictly after this date/time (ISO format: YYYY-MM-DD or full ISO)
dueThisMonthNoShow tasks due this month
plannedAfterNoShow tasks planned strictly after this date/time (ISO format: YYYY-MM-DD or full ISO)
plannedTodayNoShow tasks planned for today
showSubtasksNoExpand each matching task's subtask tree (default: false)
createdBeforeNoShow tasks created strictly before this date/time (ISO format: YYYY-MM-DD or full ISO)
deferThisWeekNoShow tasks deferred to this week
exactTagMatchNoSet to true for exact tag name match, false for partial (default: false)
modifiedAfterNoShow tasks last modified strictly after this date/time (ISO format: YYYY-MM-DD or full ISO)
plannedBeforeNoShow tasks planned strictly before this date/time (ISO format: YYYY-MM-DD or full ISO)
projectFilterNoFilter by project name (partial match)
completedAfterNoShow tasks completed strictly after this date/time (ISO format: YYYY-MM-DD or full ISO)
completedTodayNoShow tasks completed today
deferAvailableNoShow tasks whose defer date has passed (now available)
modifiedBeforeNoShow tasks last modified strictly before this date/time (ISO format: YYYY-MM-DD or full ISO)
completedBeforeNoShow tasks completed strictly before this date/time (ISO format: YYYY-MM-DD or full ISO)
maxSubtaskDepthNoMaximum subtask levels to expand; omitted means unlimited
plannedThisWeekNoShow tasks planned for this week
plannedThisMonthNoShow tasks planned for this month
completedThisWeekNoShow tasks completed this week
completedThisMonthNoShow tasks completed this month
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, covering safety. The description adds the behavioral detail of optional subtask-tree expansion, which is useful. However, it doesn't mention pagination, default limits, or how multiple filters combine, which would be valuable behavioral context. No contradiction with annotations exists.

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 is a single, front-loaded sentence that conveys the core purpose without wasted words. It is appropriately concise for its role as a high-level summary, given the detailed schema provides specifics.

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

Completeness2/5

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

Despite the complex schema with 44 parameters, the description gives no contextual guidance on how to combine filters, whether filters are AND/OR, or how the tool relates to sibling tools. It also doesn't explain pagination or output mode behavior, which are important for correct invocation. The description is too sparse to fully support an agent in using this complex tool effectively.

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 baseline is 3. The description groups parameters into categories (status, dates, projects, tags, search) which helps orient the agent, but does not add new per-parameter meaning beyond what the schema already provides. The mention of subtask expansion aligns with showSubtasks and maxSubtaskDepth, but adds little extra.

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?

The description clearly states the tool performs advanced filtering on tasks by multiple criteria such as status, dates, projects, tags, and search. This distinguishes it from simpler sibling tools like get_tasks, though it doesn't explicitly name an alternative. The verb 'filtering' and resource 'tasks' are specific, and the mention of subtask-tree expansion adds clarity.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like get_tasks or count_tasks. It does not state exclusions or prerequisites, such as whether it is intended for complex queries while simpler tools exist for basic listing. The word 'advanced' implies a use case but is not explicit guidance.

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