Skip to main content
Glama
Miles1994

siyuan-note-mcp

by Miles1994

Remove document

remove_document

Delete a SiYuan document using its ID or path. It is moved to the workspace trash and can be recovered.

Instructions

Delete a document. Accepts a document ID or a path. The document is moved to the workspace trash (数据历史) and can be recovered from SiYuan.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docYesDocument ID or path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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, and it does disclose the important trait that deletion is soft: the document goes to the workspace trash (数据历史) and is recoverable. It omits permission requirements, idempotency, and what happens when the ID/path is invalid.

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?

Two short sentences, front-loaded with the action, and the recoverability detail is placed where it is most useful. The 'Accepts a document ID or a path' clause is redundant with the schema and could be cut.

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 one-parameter mutation tool with no output schema, the description covers the essential behavioral fact (soft delete with recovery), which is what an agent most needs to act safely. Remaining gaps are permission and failure-mode details that are secondary at this complexity.

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 100% with the single 'doc' parameter already documented as 'Document ID or path', and the description repeats exactly that. Baseline 3 applies since the schema does the heavy lifting and the description adds no format or syntax detail.

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 and resource ('Delete a document') and clarifies accepted identifier forms. It does not explicitly contrast with the nearby delete_block or move_document siblings, so an agent must infer that this targets whole documents rather than blocks.

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

Usage Guidelines2/5

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

There is no when-to-use guidance or mention of alternatives such as move_document for relocation versus deletion. The recoverability note implies the operation is safe-ish, but the description never says when an agent should choose this over other mutation tools.

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