Skip to main content
Glama

Search tasks

search_tasks
Read-only

Search the user's tasks. A bare call returns tasks from every list. Text search is optional. Use view_lists to resolve a list to its id.

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": "search_tasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
whenNoNarrow by scheduled day. Each bound is a day, "2026-09-19", or an ISO 8601 duration from today in the user's timezone: "P0D" is today, "P1D" tomorrow, "-P1D" yesterday, "P2W" two weeks out. Inbox tasks have no day and never match.
limitNoMax results. Defaults to 50, up to 100.
queryNoNarrow to tasks matching this text. Every whitespace-separated word must appear in the task's name or note (case-insensitive, any order), so extra words narrow the results rather than widening them — pass distinctive keywords, not a full sentence.
cursorNoContinue from a previous response's nextCursor, with the same filters. Omit for the first page.
listIdNoNarrow to a single list. Omit to span every list.
completedNoNarrow to finished (true) or open (false) tasks. Omit for both.

Output Schema

NameRequiredDescriptionDefault
tasksYes
nextCursorNoPass as cursor, with the same filters, to read the next page. Absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / tasks / items / properties / createdAt
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / tasks / items / required
      Previous value: -[
      -  "id",
      -  "url",
      -  "name",
      -  "completed",
      -  "starred",
      -  "when",
      -  "reminder",
      -  "note",
      -  "duration",
      -  "completedAt",
      -  "updatedAt",
      -  "source",
      -  "list"
      -]New value: +[
      +  "id",
      +  "url",
      +  "name",
      +  "completed",
      +  "starred",
      +  "when",
      +  "reminder",
      +  "note",
      +  "duration",
      +  "completedAt",
      +  "createdAt",
      +  "updatedAt",
      +  "source",
      +  "list"
      +]
  2. Changed12 schema fields changed
    • removedOutput schema / properties / tasks / items / properties / completedAt / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / tasks / items / properties / completedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / tasks / items / properties / duration / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / tasks / items / properties / duration / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / tasks / items / properties / note / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / tasks / items / properties / note / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / tasks / items / properties / reminder / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / tasks / items / properties / reminder / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / tasks / items / properties / source / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / tasks / items / properties / source / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / tasks / items / properties / when / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / tasks / items / properties / when / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  3. Changed2 schema fields changed
    • addedOutput schema / properties / tasks / items / properties / reminder
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Time of day on the `when` day, \"HH:MM\", or null for none."
      +}
    • changedOutput schema / properties / tasks / items / required
      Previous value: -[
      -  "id",
      -  "url",
      -  "name",
      -  "completed",
      -  "starred",
      -  "when",
      -  "note",
      -  "duration",
      -  "completedAt",
      -  "updatedAt",
      -  "source",
      -  "list"
      -]New value: +[
      +  "id",
      +  "url",
      +  "name",
      +  "completed",
      +  "starred",
      +  "when",
      +  "reminder",
      +  "note",
      +  "duration",
      +  "completedAt",
      +  "updatedAt",
      +  "source",
      +  "list"
      +]
  4. Changed3 schema fields changed
    • changedInput schema / properties / completed / description
      Previous value: -"Read finished tasks instead of active ones. Omit for active tasks."New value: +"Narrow to finished (true) or open (false) tasks. Omit for both."
    • changedInput schema / properties / when / properties / gte / description
      Previous value: -"Inclusive lower bound. Omit it for overdue work."New value: +"Inclusive lower bound. Omit it to include every earlier day."
    • changedInput schema / properties / when / properties / lte / description
      Previous value: -"Inclusive upper bound. \"P0D\" alone reads today and everything overdue."New value: +"Inclusive upper bound. With `completed: false`, \"P0D\" alone reads today and everything overdue."
  5. Changed5 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Continue from a previous response's nextCursor, with the same filters. Omit for the first page.",
      +  "type": "string"
      +}
    • addedInput schema / properties / when
      Added value: +{
      +  "description": "Narrow by scheduled day. Each bound is a day, \"2026-09-19\", or an ISO 8601 duration from today in the user's timezone: \"P0D\" is today, \"P1D\" tomorrow, \"-P1D\" yesterday, \"P2W\" two weeks out. Inbox tasks have no day and never match.",
      +  "properties": {
      +    "gte": {
      +      "description": "Inclusive lower bound. Omit it for overdue work.",
      +      "type": "string"
      +    },
      +    "lte": {
      +      "description": "Inclusive upper bound. \"P0D\" alone reads today and everything overdue.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedOutput schema / properties / hasMore
      Removed value: -{
      -  "type": "boolean"
      -}
    • addedOutput schema / properties / nextCursor
      Added value: +{
      +  "description": "Pass as cursor, with the same filters, to read the next page. Absent on the last page.",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "tasks",
      -  "hasMore"
      -]New value: +[
      +  "tasks"
      +]
  6. Changed3 schema fields changed
    • addedInput schema / properties / limit / default
      Added value: +50
    • changedInput schema / properties / limit / description
      Previous value: -"Max results."New value: +"Max results. Defaults to 50, up to 100."
    • changedInput schema / properties / limit / maximum
      Previous value: -9007199254740991New value: +100
  7. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description usefully discloses the default all-lists scope, but says nothing about pagination behavior despite the cursor parameter, or about how results are ordered.

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?

Four short front-loaded sentences with no filler; every clause conveys a usable fact. 'Text search is optional' is slightly redundant with 'A bare call returns tasks from every list,' but harmless.

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?

With full schema coverage, an output schema, and read-only annotations, the description's burden is modest, and it covers the key default behavior and list-id resolution. Ordering of results and the relationship between cursor and filters are left unstated.

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% and each parameter, including the nested day bounds, is documented in the schema. The description only reinforces that the query filter is optional and that unfiltered calls span all lists, adding little beyond the schema baseline.

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?

States a specific verb and resource ('Search the user's tasks') and clarifies scope with 'A bare call returns tasks from every list.' It doesn't explicitly contrast with siblings like view_task, though the search semantics are distinct enough.

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?

Gives clear defaults: unfiltered search is acceptable, text search is optional, and 'view_lists' is named as the way to resolve a list id. Missing an explicit when-not-to-use statement (e.g., fetching a known task by id).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources