Skip to main content
Glama

batch_filter_tasks

Filter tasks across multiple projects in a single API call. Consolidate queries for several projects at once to streamline your task management workflow.

Instructions

PREFERRED: Filter tasks across multiple projects in ONE call. Always use this instead of multiple filter_tasks calls when querying 2+ projects.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum tasks per project (default: 100)
sortByNoSort results by field
flaggedNoFilter by flagged status
overdueNoShow overdue tasks only
dueAfterNoShow tasks due after this date (ISO format: YYYY-MM-DD)
dueTodayNoShow tasks due today
dueBeforeNoShow tasks due before this date (ISO format: YYYY-MM-DD)
sortOrderNoSort order (default: asc)
deferAfterNoShow tasks with defer date after this date (ISO format: YYYY-MM-DD)
deferTodayNoShow tasks deferred to today
projectIdsNoArray of project IDs to filter by
taskStatusNoFilter by task status. Can specify multiple statuses
deferBeforeNoShow tasks with defer date before this date (ISO format: YYYY-MM-DD)
dueThisWeekNoShow tasks due this week
dueThisMonthNoShow tasks due this month
plannedAfterNoShow tasks with planned date after this date (ISO format: YYYY-MM-DD)
plannedTodayNoShow tasks planned for today
projectNamesNoArray of project names to filter by (partial match)
deferThisWeekNoShow tasks deferred to this week
plannedBeforeNoShow tasks with planned date before this date (ISO format: YYYY-MM-DD)
completedAfterNoShow tasks completed after this date (ISO format: YYYY-MM-DD)
completedTodayNoShow tasks completed today
deferAvailableNoShow tasks whose defer date has passed (now available)
completedBeforeNoShow tasks completed before this date (ISO format: YYYY-MM-DD)
plannedThisWeekNoShow tasks planned for this week
completedThisWeekNoShow tasks completed this week
completedThisMonthNoShow tasks completed this month

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses batching semantics (one call replaces N calls), but says nothing about the result shape, whether tasks are grouped by project, or how the per-project limit interacts with aggregation – all material for a 27-parameter tool with no output schema.

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 sentences, zero waste, and the PREFERRED/preferred-selection cue is front-loaded ahead of the condition. Nothing here needs to be trimmed or reordered.

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

Completeness3/5

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

For a 27-parameter, zero-required, no-output-schema read tool, the description nails routing but stops short of telling the agent what comes back – whether results are keyed by project, whether a missing project ID errors or is skipped, and how limit applies per project. Those gaps are only partly covered by the schema's per-field notes.

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 every parameter including limit, sortBy and the date-window flags is already documented in the schema. The description adds no parameter meaning beyond that, so the baseline of 3 applies rather than anything higher.

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?

States a specific verb and resource ("Filter tasks") with a clear scope ("across multiple projects in ONE call"). It explicitly names the sibling it is not (filter_tasks) and the condition that separates them, so an agent can tell them apart without opening either schema.

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

Usage Guidelines5/5

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

"Always use this instead of multiple filter_tasks calls when querying 2+ projects" names the alternative and the triggering condition in one sentence. The only mild gap is that the single-project or single-task query case is left implicit, but the decision rule itself is unambiguous.

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