Skip to main content
Glama
bezata

kObsidian MCP

Toggle Task Status

tasks.toggle

Toggle a task checkbox in Obsidian: swap [ ] to [x] or vice versa by specifying source file and line number. Stamps completion date when marking done.

Instructions

Flip a task line between [ ] and [x] in place, identified by sourceFile and 1-based lineNumber. When marking a task done, a ✅ YYYY-MM-DD date is stamped into the line (default today; override with doneDate). Fails if the target line is not a task checkbox. Use tasks.search to find the right sourceFile/lineNumber pair.

Operates on the session-active vault (see vault.current — selectable via vault.select) unless an explicit vaultPath argument is passed, which always wins.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceFileYesNote containing the task.
lineNumberYes1-based line number of the task line.
doneDateNoWhen marking a task done, stamp this date into the `✅ YYYY-MM-DD` metadata. Defaults to today.
vaultPathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
changedYesTrue if the tool altered vault state on this call; false if it was a no-op.
targetYesThe path or identifier the tool acted on.
summaryYesShort human-readable summary of what happened.
Behavior5/5

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

The description discloses key behaviors: date stamping on done, failure on non-task lines, vault path precedence, and session-active vault dependency. Annotations (readOnlyHint=false, destructiveHint=false) are consistent with the mutation described.

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?

The description is concise with two focused paragraphs. The first explains core functionality and failure case; the second clarifies vault behavior. Every sentence is informative and earns its place.

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?

The description covers the tool's purpose, inputs, behavior, prerequisites, vault scoping, and external dependency on tasks.search. Even with output schema present, the description provides sufficient context for effective use.

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 description adds meaning beyond the schema by explaining the roles of sourceFile, lineNumber, doneDate, and vaultPath. Schema already provides good descriptions for three parameters, and the description covers vaultPath which lacks schema description.

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 explicitly states the tool flips a task checkbox between `[ ]` and `[x]`, identifies the task by sourceFile and lineNumber, and stamps a date when marking done. It distinguishes itself from sibling tools like tasks.search by recommending its use for finding the correct pair.

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?

The description advises using tasks.search to find the correct sourceFile/lineNumber pair, provides context about vault scoping, and implies when to use (toggling) vs. when not (non-task lines). However, it does not explicitly mention alternatives like tasks.create or tasks.updateMetadata for different operations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bezata/kObsidian'

If you have feedback or need assistance with the MCP directory API, please join our Discord server