Skip to main content
Glama

Filter tasks

filter_tasks
Read-only

Filter OmniFocus tasks by status, dates, project, folder, tags, name, and estimate. Combine conditions with and/or/not, count matches, or page through results.

Instructions

Advanced task filtering: status, dates (due/defer/planned/completed/added/modified/dropped), project, folder tree, tags, name/regex, note, repeat, estimate — plus and/or/not clauses, countOnly, field projection, and offset paging.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orNoAt least one condition must be true
andNoEvery condition must be true
notNoThe condition must be false
limitNoMaximum number of tasks to return (default: 100). Applied after all filters and sorting; the output notes when results were capped
fieldsNoOptional detail components to render ('project' = per-project headings). Id and name always render; omit for all
offsetNoSkip this many matches (default: 0). Applied after the sort, so paging never repeats or skips a task
sortByNoSort results by field
flaggedNoFilter by flagged status
hasNoteNotrue = only tasks with a non-empty note; false = only tasks without one
overdueNoShow overdue tasks only
dateModeNoDate predicates use dates set directly on tasks, or effective dates inherited from parents/projects. Default: direct.
dueAfterNoShow tasks due after this date. Bare YYYY-MM-DD is safe: it means local midnight that day. Full ISO 8601 (e.g., 2026-03-05T09:00:00-06:00) also accepted
dueTodayNoShow tasks due today
folderIdNoSame as folderName, by id. An id matching nothing is an error; never falls back to name
countOnlyNoReturn only the number of matches. Far cheaper — no task details are read
dueBeforeNoShow tasks due before this date. Bare YYYY-MM-DD is safe: it means local midnight that day. Full ISO 8601 (e.g., 2026-03-05T09:00:00-06:00) also accepted
sortOrderNoSort order (default: asc)
tagFilterNoFilter by tag name(s). Can be single tag or array of tags
addedAfterNoShow tasks created after this date
deferAfterNoShow tasks with defer date after this date. Bare YYYY-MM-DD is safe: it means local midnight that day
deferTodayNoShow tasks deferred to today
folderNameNoOnly tasks whose project is in this folder or any folder nested inside it. Inbox tasks never match
searchTextNoSearch in task names and notes
taskStatusNoFilter by task status. Can specify multiple statuses
addedBeforeNoShow tasks created before this date
deferBeforeNoShow tasks with defer date before this date. Bare YYYY-MM-DD is safe: it means local midnight that day
dueThisWeekNoShow tasks due this week (Sunday through Saturday, local time)
isRepeatingNotrue = only repeating tasks; false = only non-repeating tasks
nameMatchesNoCase-insensitive regex matched against the task name. Invalid patterns are rejected
perspectiveNoLimit search to specific perspective: inbox, flagged, all tasks
droppedAfterNoShow tasks dropped after this date (implies dropped tasks)
dueThisMonthNoShow tasks due this month
nameContainsNoCase-insensitive substring match on the task name only
plannedAfterNoShow tasks planned after this date. Bare YYYY-MM-DD is safe: it means local midnight that day
plannedTodayNoShow tasks planned for today
tagMatchModeNoMatch any tag (OR, default) or all tags (AND)
weekStartsOnNoStart of every week predicate, including completedThisWeek. Default Sunday (changed from Monday for completions in 0.6).
deferThisWeekNoShow tasks deferred to this week (Sunday through Saturday, local time)
droppedBeforeNoShow tasks dropped before this date (implies dropped tasks)
exactTagMatchNoSet to true for exact tag name match, false for partial (default: false)
modifiedAfterNoShow tasks last modified after this date
plannedBeforeNoShow tasks planned before this date. Bare YYYY-MM-DD is safe: it means local midnight that day
projectFilterNoFilter by project name (partial match)
completedAfterNoShow tasks completed after this date. Bare YYYY-MM-DD is safe: it means local midnight that day
completedTodayNoShow tasks completed today (since local midnight)
deferAvailableNoShow tasks whose defer date has passed (now available)
modifiedBeforeNoShow tasks last modified before this date
completedBeforeNoShow tasks completed before this date. Bare YYYY-MM-DD is safe: it means local midnight that day
plannedThisWeekNoShow tasks planned for this week (Sunday through Saturday, local time)
estimatedMinutesNoEstimate in minutes. All supplied comparators must hold; no estimate never matches
plannedThisMonthNoShow tasks planned for this month
completedThisWeekNoShow tasks completed since the start of this week at local midnight (default Sunday)
completedThisMonthNoShow tasks completed since the 1st of this month at local midnight
completedYesterdayNoShow tasks completed yesterday (local midnight to local midnight)
includeProjectRootsNoInclude project root tasks (default false).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
metaNo
toolYes
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, covering the key non-mutating behavior. The description adds little beyond a feature list (e.g., 'offset paging') and does not disclose edge cases or side effects, but it does not contradict the annotations.

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

Conciseness4/5

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

The description is a single dense sentence with no filler, front-loaded with 'Advanced task filtering'. It packs many meaningful feature categories into a compact overview, though it reads as a long laundry list and could be structured with examples or bullets for easier scanning.

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 the enormous 55-parameter schema with descriptions and a declared output schema, the description provides a sufficient high-level map of capabilities. It doesn't include examples or common usage patterns, but the schema's per-parameter descriptions fill most gaps.

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%, with every parameter individually described. The tool description adds a high-level conceptual grouping—and/or/not clauses, countOnly, field projection, offset paging—but does not provide any parameter-level detail beyond what the schema already gives.

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 states a specific verb and resource: 'Advanced task filtering' of tasks, and enumerates the dimensions (status, dates, project, folder tree, tags, name/regex, note, repeat, estimate). It clearly distinguishes itself from simpler sibling getters via the word 'Advanced', though it never names an alternative tool directly.

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

Usage Guidelines3/5

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

The description implies use for complex or multi-dimensional filtering but gives no explicit when-to-use guidance or exclusions. It doesn't route the agent to simpler siblings like get_inbox_tasks or get_flagged_tasks when advanced clauses aren't needed, leaving the selection largely to inference.

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