Skip to main content
Glama
BiteFoundry Obsidian MCP Server

BiteFoundry Obsidian MCP Server

toggle_task

Toggles a Markdown checkbox at an exact 1-based line, optionally verifying expected text or state to prevent edits when lines shift.

Instructions

Surgically toggle a Markdown checkbox (- [ ] <-> - [x]) at an exact 1-based line number, optionally verifying expected text/state to guard against shifted lines.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "note": "<note>",
      "line": "<line>"
    },
    "name": "toggle_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYes1-based line number of the task checkbox.
noteYesNote path, title, or alias.
vaultNoOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.
expected_textNoOptional expected task text at this line; refuses toggle on mismatch.
expected_checkedNoOptional expected current checked state; refuses toggle on mismatch.
expected_mtime_msNoOptional expected note mtime_ms; refuses toggle if file changed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the mutation ('toggle'), that it is line-scoped rather than content-searched, and that mismatches cause refusal via the expected_* guards. It does not say what happens if the target line is not a checkbox, whether the write is atomic, or how failures are reported, so it is adequate but incomplete for a write tool.

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?

A single front-loaded sentence with the action first, the mechanic second, and the optional safety behavior last. No filler, no redundancy with the schema.

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 6-parameter mutation with no annotations and no output schema, the description covers the action, the addressing unit, and the guard semantics. It leaves return/error behavior and non-checkbox target handling unaddressed, a minor gap given the rich schema.

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%, so the baseline is 3, but the description adds genuine rationale beyond the schema: it explains that the expected text/state parameters exist to 'guard against shifted lines,' which no schema field description conveys on its own.

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 (toggle) and resource (a Markdown checkbox, '- [ ] <-> - [x]') with the exact addressing mechanism (1-based line number), which is enough to distinguish it from broad text-editing siblings like replace_note_text. It stops short of naming a sibling or stating the scope boundary explicitly, so a 4 rather than a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: 'surgically' and 'exact 1-based line number' signal a precise single-checkbox edit, and the optional guards hint at the shifted-lines hazard. There is no explicit when-to-use/when-not guidance and no pointer telling the agent how to obtain a valid line number (e.g. via list_tasks or read_note), leaving that to inference.

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