Skip to main content
Glama
Obsidian MCP (pgvector + Ollama, self-hosted)

Obsidian MCP (pgvector + Ollama, self-hosted)

by maxkuminov

List tasks

list_tasks
Read-onlyIdempotent

Find and filter checkbox tasks across an Obsidian vault from the index by status, date, tag, priority, or text, with paging—without reading notes.

Instructions

List checkbox tasks (- [ ] …) across the vault in one call, from the index — no note is read.

For a dated overview (overdue, due today, scheduled, upcoming) use task_agenda; use list_tasks to filter, search and page. Plain checkboxes work; Tasks-plugin emoji fields (📅 due, ⏳ scheduled, 🛫 start, ✅ done, 🔁 recurrence, priority) are optional and read when present. Query blocks are text and are not evaluated; a checkbox in code is not a task. The index follows each pass (default every 300 s); task writes refresh it at once.

Each row: the raw marker, the path in backticks with :line, — id <id>, the dates, priority, tags, under: heading and text: last. In a path, whitespace and a backtick are shown as \n, \t, \uXXXX (a backtick is \u0060) and \ as \\; the write tools take the unescaped path. complete_task and update_task take that id with the path; an id shaped <key>.<i>of<n> (identical lines) also needs expected_hash, the note's content_hash from read_note. detail="brief" prints one short line per task; context=true adds the indented lines under each task (┆).

Status: [ ], [/] and other markers are open; [x]/[X] are done; [-] is cancelled (only in cancelled and all). Dates accept YYYY-MM-DD, today, tomorrow, yesterday, +Nd or -Nd, resolved in your task timezone (the query line states it and each resolved date). *_from / *_by are inclusive and exclude tasks without that date.

The header always states what the index could not show — notes not yet scanned, tasks that could not be indexed, notes over the 5,000-task cap, ids pending — and, under scope="default", how many tasks your excluded folders, note tags and task rule removed, so "no tasks" does not mean none exist. When more rows match, the header says more: yes and the response ends next: <cursor>: pass it back with the same arguments. A cursor from other arguments, an older server version, or a relative-date query continued after midnight is refused (invalid_argument): start again without one. response_cap_too_small: the response cap cannot hold one row.

Args: folder: Only notes under this path prefix (e.g. "Projects/"). status: open (default), done, cancelled or all. due_by: Due on or before this date. scheduled_by: Scheduled on or before this date. tags: Tasks carrying every one of these tags on the task line, matched by / segment and case-insensitively (a matches #a and #A/b, not #ab). At most 32, a leading # optional. limit: Tasks per page, 1–500 (default 100). cursor: The next value from the previous page of the same query. due_from: Due on or after this date. scheduled_from: Scheduled on or after this date. done_from: Done on or after this date. done_by: Done on or before this date. undated: true — neither a due nor a scheduled date; false — at least one. has_due: true — with a due date; false — without. text: 1–256 characters, at most 8 words; every word must occur in the task's text, case-insensitively. priority: Any of highest, high, medium, none, low, lowest. recurring: true — with a 🔁 rule; false — without. exclude_tags: Drop tasks carrying any of these tags (matched as tags). path: Exactly this note. order_by: due (default, undated last), priority, scheduled, done (newest first) or path. detail: full (default) or brief. context: true to include each task's indented context lines. scope: default applies your task settings: excluded folders, excluded note tags and the task rule (which checkboxes count as tasks); all ignores them.

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

Input Schema

NameRequiredDescriptionDefault
pathNo
tagsNo
textNo
limitNo
scopeNodefault
cursorNo
detailNofull
due_byNo
folderNo
statusNoopen
contextNo
done_byNo
has_dueNo
undatedNo
due_fromNo
order_byNodue
priorityNo
done_fromNo
recurringNo
exclude_tagsNo
scheduled_byNo
scheduled_fromNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changedv1.4.0
    • addedInput schema / properties / context
      Added value: +{
      +  "default": false,
      +  "title": "Context",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "full",
      +  "title": "Detail",
      +  "type": "string"
      +}
    • addedInput schema / properties / done_by
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Done By"
      +}
    • addedInput schema / properties / done_from
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Done From"
      +}
    • addedInput schema / properties / due_from
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Due From"
      +}
    • addedInput schema / properties / exclude_tags
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Exclude Tags"
      +}
    • addedInput schema / properties / has_due
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Has Due"
      +}
    • addedInput schema / properties / order_by
      Added value: +{
      +  "default": "due",
      +  "title": "Order By",
      +  "type": "string"
      +}
    • addedInput schema / properties / path
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Path"
      +}
    • addedInput schema / properties / priority
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Priority"
      +}
    • addedInput schema / properties / recurring
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Recurring"
      +}
    • addedInput schema / properties / scheduled_from
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Scheduled From"
      +}
    • addedInput schema / properties / scope
      Added value: +{
      +  "default": "default",
      +  "title": "Scope",
      +  "type": "string"
      +}
    • addedInput schema / properties / text
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Text"
      +}
    • addedInput schema / properties / undated
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Undated"
      +}
  2. Addedv0.10.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent, closed-world read, but the description adds far more: index staleness (300 s default, refreshed on task writes), cursor lifecycle and rejection modes, the `invalid_argument` and `response_cap_too_small` errors, and the header's disclosure of unscanned notes, 5,000-task cap and filtered-out counts. This is exactly the operational context annotations cannot carry.

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?

Front-loaded with purpose and the alternative, then organized into behavior, row format, status/date semantics, and an args block — a sensible order for a 22-parameter tool. It is long and occasionally dense (the path-escaping paragraph and the duplicated Args list are heavy), but almost every sentence carries information an agent needs to avoid a wrong call.

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?

For a 22-parameter filtered-list tool with an output schema, this covers the remaining gaps: pagination contract, cursor invalidation, date expression grammar and timezone resolution, marker-to-status mapping, and result-truncation disclosure. Nothing material is missing to call it correctly or interpret a sparse result.

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

Parameters5/5

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

The schema has 0% description coverage across 22 parameters, so the description must carry the full load — and it documents all of them with real semantics: tag matching by `/` segment and case-insensitivity (`a` matches `#a` but not `#ab`), the 32-tag cap, `text` word/case rules, inclusive `*_from`/`*_by` that exclude undated tasks, `order_by` values with 'undated last', and the `undated`/`has_due` distinction.

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?

Opens with a specific verb and resource plus scope: 'List checkbox tasks (`- [ ] …`) across the vault in one call, from the index — no note is read.' It also explicitly delimits itself against the sibling `task_agenda`, so an agent can pick between the two without opening a 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?

Explicit routing: dated/overdue overviews go to `task_agenda`, while `list_tasks` is for filter/search/page. It further states what is not a task (query blocks, checkboxes in code), when `scope="default"` silently removes results, and that cursors are invalid across arguments or midnight — all conditions that change whether/how to call it.

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