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

Obsidian MCP (pgvector + Ollama, self-hosted)

by maxkuminov

Task agenda

task_agenda
Read-onlyIdempotent

Get a dated overview of open tasks in one call, grouped into overdue, due today, scheduled, and upcoming, with filters for folder, tags, scope, and time window.

Instructions

A dated overview of open tasks in one call, from the index: overdue, due today, scheduled and now due, and upcoming.

Use list_tasks to filter, search or page through tasks in general; use task_agenda for "what is due". Plain checkboxes work; only tasks with a Tasks-plugin date (πŸ“… due, ⏳ scheduled) can be dated, and the emoji fields are otherwise optional.

Sections, each counted and disjoint β€” every open task due on or before date + days, or scheduled on or before date, is in exactly one:

  • overdue: due before date;

  • due today: due on date;

  • scheduled and now due: scheduled on or before date with no due date, or with a due date after the window;

  • upcoming: due in the days days after date, grouped by due date.

Rows are brief: marker, id, the path in backticks with :line (escaped as in list_tasks; pass it unescaped), dates, priority, tags and description. complete_task and update_task take that id with the path. A section shows at most 25 rows (overdue, due today), 15 (each scheduled part) or 50 (upcoming); one with more ends continue: list_tasks(…) β€” the exact list_tasks arguments, dates resolved, with a cursor when rows were shown β€” to be called with this call's folder, tags, exclude_tags and scope.

The header states the timezone and date used, days, the scope, excluded by scope: N, and what the index could not show (notes not yet scanned, tasks that could not be indexed, notes over the task cap, ids pending), so an empty section does not mean no tasks exist. Invalid arguments are refused invalid_argument; response_cap_too_small means the deployment's response cap is under 2,800 characters (3,121 while a task rule is in force).

Args: date: The day to report on: YYYY-MM-DD, today (default), tomorrow, yesterday, +Nd or -Nd, in your task timezone. days: The upcoming window in days, 1–31 (default 7). folder: Only notes under this path prefix (e.g. "Projects/"). tags: Only tasks carrying every one of these tags, matched by / segment and case-insensitively. At most 32. exclude_tags: Drop tasks carrying any of these tags. 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": "task_agenda"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNotoday
daysNo
tagsNo
scopeNodefault
folderNo
exclude_tagsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already establish a safe read-only, idempotent operation, but the description goes far beyond them: it defines the four sections as disjoint, states row caps per section (25/15/50), explains the `continue: list_tasks(…)` handoff with the exact arguments and cursor to reuse, lists the header metadata, and documents refusal codes `invalid_argument` and `response_cap_too_small` with character thresholds. It even warns that an empty section does not imply no tasks exist, covering indexing gaps.

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?

Purpose is front-loaded, then usage routing, then section semantics, then output shape, then errors, then Args β€” a sensible progression with no filler sentences. It is long and dense, and details such as the escaped/unescaped path nuance and the 3,121-character rule-under-force threshold add bulk, though they are operationally relevant rather than redundant.

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 six-parameter read tool with an output schema, an agent still gets everything needed to call it correctly: date grammar, window bounds, filter semantics, scope behavior, per-section caps, continuation protocol, and failure modes. Return-value structure is additionally sketched in the 'Rows are brief' sentence, so nothing material is left to guess.

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?

Schema description coverage is 0%, so the description carries the full burden, and the Args block does: `date` accepts YYYY-MM-DD, today/tomorrow/yesterday, Β±Nd and is interpreted in the task timezone; `days` is bounded 1–31; `tags` matches every tag by `/` segment case-insensitively with a cap of 32; `folder` is a path prefix; `scope` toggles excluded folders/tags and the task rule. That is meaning well beyond the bare typed properties.

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 opening sentence names a specific resource and shape of output: a dated overview of open tasks broken into overdue, due today, scheduled-and-now-due and upcoming. It also explicitly contrasts itself with `list_tasks` ('use `task_agenda` for "what is due"'), so an agent can pick between the two 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?

It gives an explicit routing rule via the sibling: `list_tasks` for filtering/searching/paging, `task_agenda` for what is due. It further qualifies applicability by noting that only tasks with Tasks-plugin date fields can be dated, and explains what `scope: default` vs `all` changes, so the agent knows both when to call it and how its view is narrowed.

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