Skip to main content
Glama

todo_query

Read-onlyIdempotent

Search and filter todos across all calendars by status, title text, or due date range. Use it instead of listing every todo to conserve tokens and return only matching tasks.

Instructions

⭐ PREFERRED: Search and filter todos efficiently. Use instead of list_todos to conserve tokens. Omit calendar_url to search across ALL calendars automatically.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "todo_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of todos to return (default 20, max 500). You get the earliest by due date, and the response states how many matched in total.
calendar_urlNoOptional: Specific calendar URL. Omit to search ALL calendars (recommended).
status_filterNoFilter by todo status. Use "NEEDS-ACTION" for pending tasks, "COMPLETED" for done tasks. Can be used alone as sufficient filter.
summary_filterNoSearch todo summaries/titles containing this text (case-insensitive). Example: "write report" or "review PR". Can be used alone as sufficient filter.
time_range_endNoEnd datetime for due date filtering (ISO 8601). If provided, time_range_start is REQUIRED. Both dates together form a complete filter.
time_range_startNoStart datetime for due date filtering (ISO 8601). If provided, time_range_end is REQUIRED. Both dates together form a complete filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so safety is covered. The description adds useful behavior beyond that: token-cost motivation and the fact that the default scope spans all calendars rather than a single one, which is a real semantic difference from the sibling.

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 short sentences, front-loaded with the routing decision before the scoping detail. Every clause carries actionable information; the star marker is cosmetic noise but does not dilute comprehension.

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 six-parameter, all-optional search tool with no output schema, the description plus rich schema descriptions cover how to narrow results and the cross-calendar default. Return-shape detail (earliest by due date, total match count) lives only in the schema's limit field, so the description itself does not fully describe output.

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 each parameter already documented including defaults, ISO 8601 formats and the paired time_range requirement. The description only reinforces the calendar_url omission rule, adding little beyond what the schema states.

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+resource (search and filter todos) and immediately differentiates from the sibling list_todos, marking itself as the preferred path. The scoping note that omitting calendar_url searches all calendars tells an agent exactly what the default search surface is.

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?

Explicitly names the alternative (list_todos) and the condition that selects this tool (conserve tokens), plus how to widen scope by omitting calendar_url. It stops short of any 'when not to use' case, but the routing guidance is clear enough to act on.

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