Skip to main content
Glama

delete_task

Destructive

Deletes a task line by its path:line reference and verifies expected text first to prevent removing the wrong task after a note changes.

Instructions

Delete a task line (by ref "path:line"); expect_text guards against the note having changed.

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": {
      "ref": "<ref>"
    },
    "name": "delete_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
expect_textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is known. The description adds real value by explaining the expect_text guard as a staleness check against the note having changed, but it does not say what happens on a mismatch (abort vs. error vs. proceed), whether deletion is recoverable, or whether task metadata elsewhere is touched.

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 tight sentence that front-loads the action, the resource and the identifier format, then adds the one non-obvious parameter behavior. No filler and nothing redundant.

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 three-parameter destructive mutation with no output schema, the description covers the essentials: what is removed, how it is identified, and the safety guard. The remaining omission is the failure behavior when expect_text does not match, which an agent would want before invoking a destructive call.

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

Parameters3/5

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

Schema coverage is only 33%: vault has a description, while ref and expect_text are bare in the schema. The description compensates meaningfully by giving ref's "path:line" format and explaining expect_text's guarding role, but leaves the exact matching semantics of expect_text (substring vs. exact line text) undefined.

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 plus resource ("Delete a task line") and pins down the identifier format as "path:line", which distinguishes task-line deletion from file-level deletion among siblings. It stops short of naming the actual sibling alternatives (e.g. delete_file, update_task), so it is clear but not fully differentiated.

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 only implied: an agent can infer it should call this when a task line must be removed entirely rather than edited. There is no explicit 'use this instead of X' routing, no note about checking the line still matches before calling, and no statement of when not to use it (e.g. for completing rather than removing a task).

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

Deploy Server

Other Tools