Skip to main content
Glama
obsidian-pkm

obsidian-pkm

by AdrianV101

vault_trash

Soft-delete Markdown notes outside dot-folders by moving them to .trash/, refuse folders, and warn about broken incoming links; use vault_move to relocate files.

Instructions

Soft-delete a note by moving it to .trash/ (Obsidian convention). Only .md notes outside dot-folders can be trashed; folders are refused (trash the notes inside one by one). Reports files with broken incoming links as warnings. Use vault_move to relocate files instead. Paths in this tool's output are formatted as markdown links [vault-relative-path.md](obsidian://...) so users can Cmd/Ctrl-click to open in Obsidian. Preserve the link form when relaying paths to the user; pass only the bracket text (e.g. 01-Projects/Foo/note.md) to other vault tools' path arguments, never the full markdown link.

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": {
      "path": "<path>"
    },
    "name": "vault_trash"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the file to trash (exact path required)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.10.1

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden well: it discloses the soft-delete mechanism (nothing is permanently erased, files land in .trash/), the eligibility constraints, that broken incoming links are reported as warnings, and the output path formatting convention including how to relay it to users. That is far more than the annotations would have provided.

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 constraints, then usage alternative, then output convention. Efficient overall, though the two-sentence markdown-link instruction is dense and could be tightened slightly.

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?

Complete for a one-parameter mutation tool with no output schema: purpose, eligibility, failure mode for folders, side-effect warnings, and the shape of returned paths are all covered. Only the exact warning payload format is left implicit.

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 single path parameter is already documented, but the description adds real meaning: that the path is vault-relative and that when reusing the returned markdown link, only the bracket text should be passed to other tools' path arguments. That prevents a concrete misuse case the schema cannot express.

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?

States a specific verb and mechanism: 'Soft-delete a note by moving it to .trash/ (Obsidian convention).' This makes clear it's a reversible delete, distinct from a hard delete, and immediately separates it from siblings like vault_move and vault_edit.

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?

Explicitly routes the agent away from this tool when relocation is wanted ('Use vault_move to relocate files instead') and gives precise inclusion/exclusion rules: only .md notes outside dot-folders, folders refused, trash contents one by one.

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