Skip to main content
Glama
aliasunder

Vault Cortex Obsidian MCP Server

List Tasks

vault_list_tasks
Read-onlyIdempotent

List and filter checkbox tasks across an entire Obsidian vault by status, date, priority, folder, or heading, returning each task's exact location for direct triage.

Instructions

List checkbox tasks across the whole vault with structured filters β€” the Tasks-plugin data model over MCP. Both task metadata formats are indexed: emoji signifiers (πŸ“… due, ⏳ scheduled, πŸ›« start, βž• created, βœ… done, ❌ cancelled, πŸ”Ίβ«πŸ”ΌπŸ”½β¬ priority, πŸ” recurrence, 🏁 onCompletion, πŸ†”/β›” dependencies) and Dataview inline fields ([due:: 2026-07-04], [priority:: high], ...). Every result carries its attribution β€” note path, folder, line number, and the nearest heading when the task sits under one (the lane on a Kanban board) β€” so no follow-up reads are needed to locate a task. Task lines inside fenced code blocks and %% %% comment blocks are not indexed.

Example: vault_list_tasks({ due: { before: "2026-07-04" } }) β€” overdue triage; the default status (not_done) and sort (due ascending) make this the "what's overdue?" call Example: vault_list_tasks({ path: "Code Projects/vault-cortex/TASKS.md", heading: ["Active", "Up Next", "Waiting On"], sort_by: "position" }) β€” actionable Kanban lanes in board order; position is the natural sort for boards (file path then line number, preserving card arrangement) Example: vault_list_tasks({ folder: "Code Projects/vault-cortex" }) β€” all open tasks across a project tree (TASKS.md + task-notes/ subdirectories); folder is a recursive prefix match Example: vault_list_tasks({ status: "done", done: { after: "2026-06-26" } }) β€” what got completed this week Example: vault_list_tasks({ top_level_only: true, path: "TASKS.md" }) β€” board cards only, excluding checklist sub-items

When to use: Any vault-wide task triage question β€” "what's overdue?", "what's open per project?", "what did I finish this week?" β€” in one call instead of per-board reads. Prefer vault_read_note (heading mode) to read one specific board lane verbatim. Prefer vault_search for full-text queries over note content.

Parameters:

  • status: a single value or an array of values, OR-combined (default "not_done"). Values: "not_done" (todo + in_progress, excludes done AND cancelled), "todo", "in_progress", "done", "cancelled", "all". Virtual values expand in arrays: ["not_done", "done"] matches todo + in_progress + done.

  • due / scheduled / start / done / created / cancelled: date filters, each { before, on, after } in YYYY-MM-DD β€” before/after are exclusive, on is exact. A date filter only matches tasks that HAVE that date.

  • priority: array of "highest" | "high" | "medium" | "low" | "lowest" | "none", OR-combined ("none" = tasks with no priority signifier).

  • folder: recursive note-path prefix. tag: bare inline-task-tag name; a parent tag matches children. heading: exact heading text or array of headings, case-sensitive, OR-combined. path: one note, must end in ".md".

  • top_level_only: boolean (default false). When true, only top-level tasks (depth 0) are returned β€” excludes indented sub-tasks and checklist items.

  • sort_by: "due" (default) | "scheduled" | "start" | "created" | "done" | "priority" | "note_mtime" | "position". "position" sorts by file path then line number β€” the natural order for Kanban boards.

  • limit: max results (default 50). The total field always reports the full match count.

Errors:

  • A malformed or calendar-invalid date filter throws with remediation text ("Use YYYY-MM-DD")

  • path without the ".md" extension is rejected

  • No matches returns { total: 0, tasks: [] }, not an error

Returns: JSON { total, tasks }. Every task carries path, line, status, status_char, description, folder, depth (0 for top-level, 1+ for sub-tasks), is_kanban_task, depends_on, and tags (the arrays are [] when empty). Every other field appears only when the task has it: heading (nearest heading above the task), created/scheduled/start/due/done/cancelled dates, priority, recurrence, on_completion, task_id, block_id, parent_block_id (sub-tasks whose parent carries a ^block-id), done_lanes (Kanban boards only), and subtask_progress β€” { done, total } over the task's DIRECT checklist children, present only when the task has a checklist (absent = no checklist items); done counts status "done" only (a cancelled child counts toward total, not done), and the counts ignore the query's filters β€” so a filtered or top_level_only read still shows each card's checklist progress.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dueNoDue date (πŸ“… / [due:: ]) bounds
tagNoInline task tag, bare name without "#"; parent tags match children
doneNoDone date (βœ… / [completion:: ]) bounds
pathNoRestrict to one note (vault-relative path ending ".md")
limitNoMax results (default 50); total always reports the full match count
startNoStart date (πŸ›« / [start:: ]) bounds
folderNoRestrict to a note-path prefix (e.g. "Code Projects/vault-cortex")
statusNoStatus filter, OR-combined (default "not_done" = todo + in_progress, excluding done and cancelled). Virtual values expand in arrays: "not_done" adds todo + in_progress, "all" includes every status.not_done
createdNoCreated date (βž• / [created:: ]) bounds
headingNoExact heading text or array of headings, OR-combined, case-sensitive (e.g. "Active" or ["Active", "Up Next"])
sort_byNoSort key (default "due"). Date sorts cascade through related fields when the primary is absent; each fallback uses its own natural direction. "position" sorts by file path then line number β€” the natural order for Kanban boards.due
priorityNoPriority levels, OR-combined; "none" selects tasks with no priority signifier
cancelledNoCancelled date (❌ / [cancelled:: ]) bounds
scheduledNoScheduled date (⏳ / [scheduled:: ]) bounds
sort_directionNoSort direction. Default per field: "asc" for due/scheduled/priority/position, "desc" for start/created/done/note_mtime. Within a date cascade, each fallback uses its own default; an explicit value overrides all fields uniformly.
top_level_onlyNoWhen true, only top-level tasks (depth 0) are returned β€” excludes indented sub-tasks and checklist items. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.50.0
    • addedInput schema / properties / limit / default
      Added value: +50
    • addedInput schema / properties / sort_by / default
      Added value: +"due"
    • addedInput schema / properties / status / default
      Added value: +"not_done"
    • addedInput schema / properties / top_level_only / default
      Added value: +false
  2. Changed5 schema fields changedv0.41.2
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (default 50)"New value: +"Max results (default 50); total always reports the full match count"
    • addedInput schema / properties / limit / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / top_level_only
      Added value: +{
      +  "description": "When true, only top-level tasks (depth 0) are returned β€” excludes indented sub-tasks and checklist items. Default false.",
      +  "type": "boolean"
      +}
  3. Changed11 schema fields changedv0.26.4
    • addedInput schema / properties / heading / anyOf
      Added value: +[
      +  {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "minItems": 1,
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / heading / description
      Previous value: -"Exact heading text above the task (case-sensitive) β€” a Kanban lane name (e.g. \"Active\")"New value: +"Exact heading text or array of headings, OR-combined, case-sensitive (e.g. \"Active\" or [\"Active\", \"Up Next\"])"
    • removedInput schema / properties / heading / minLength
      Removed value: -1
    • removedInput schema / properties / heading / type
      Removed value: -"string"
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort key (default \"due\" β€” ascending, dateless tasks last)"New value: +"Sort key (default \"due\"). Date sorts cascade through related fields when the primary is absent; each fallback uses its own natural direction. \"position\" sorts by file path then line number β€” the natural order for Kanban boards."
    • changedInput schema / properties / sort_by / enum
      Previous value: -[
      -  "due",
      -  "scheduled",
      -  "start",
      -  "created",
      -  "done",
      -  "priority",
      -  "note_mtime"
      -]New value: +[
      +  "due",
      +  "scheduled",
      +  "start",
      +  "created",
      +  "done",
      +  "priority",
      +  "note_mtime",
      +  "position"
      +]
    • changedInput schema / properties / sort_direction / description
      Previous value: -"Sort direction (default \"asc\" for due/scheduled, \"desc\" for start/created/done/note_mtime)"New value: +"Sort direction. Default per field: \"asc\" for due/scheduled/priority/position, \"desc\" for start/created/done/note_mtime. Within a date cascade, each fallback uses its own default; an explicit value overrides all fields uniformly."
    • addedInput schema / properties / status / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "not_done",
      +      "todo",
      +      "in_progress",
      +      "done",
      +      "cancelled",
      +      "all"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "enum": [
      +        "not_done",
      +        "todo",
      +        "in_progress",
      +        "done",
      +        "cancelled",
      +        "all"
      +      ],
      +      "type": "string"
      +    },
      +    "minItems": 1,
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / status / description
      Previous value: -"Status filter (default \"not_done\" = todo + in_progress, excluding done and cancelled)"New value: +"Status filter, OR-combined (default \"not_done\" = todo + in_progress, excluding done and cancelled). Virtual values expand in arrays: \"not_done\" adds todo + in_progress, \"all\" includes every status."
    • removedInput schema / properties / status / enum
      Removed value: -[
      -  "not_done",
      -  "todo",
      -  "in_progress",
      -  "done",
      -  "cancelled",
      -  "all"
      -]
    • removedInput schema / properties / status / type
      Removed value: -"string"
  4. Addedv0.26.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds substantial behavioral context beyond that: both emoji and Dataview formats are indexed, fenced code blocks and comment blocks are excluded, results carry attribution, limit still reports full totals, and subtask_progress has precise counting semantics. No contradiction with 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 long, but the tool has 16 parameters and no output schema, so length is largely justified. It is well-structured with 'When to use', 'Errors', 'Returns', and illustrative examples. It earns a 4 rather than 5 because some parameter text closely duplicates the schema descriptions and the example list could be trimmed without loss.

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

Completeness5/5

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

With no output schema, the description carries full responsibility for return values, and it delivers: it enumerates every task field, distinguishes always-present vs conditional fields, explains subtask_progress counting, covers error behavior, defines no-match behavior, and clarifies default status and sort. Nothing an agent needs to call this tool correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and each parameter already has a solid schema description, so the baseline is 3. The description adds meaningful extra semantics: virtual status expansion in arrays, exclusive before/after date behavior, folder as recursive prefix, case-sensitive exact heading match, '.md' requirement on path, and the meaning of 'position' sort. This exceeds the schema but does not fully reinvent it; hence 4 rather than 5.

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?

The description opens with a specific verb, resource, and scope: 'List checkbox tasks across the whole vault with structured filters'. It also names the data model (Tasks-plugin) and later contrasts itself with vault_read_note and vault_search, so an agent can immediately distinguish this search/list tool from siblings.

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?

The 'When to use' section gives concrete question types ('what's overdue?', 'what's open per project?'), and it explicitly says to prefer vault_read_note for reading one board lane verbatim and vault_search for full-text queries. This is explicit routing guidance with exclusions, leaving little to inference.

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