Skip to main content
Glama

Delete Document

delete_document
DestructiveIdempotent

Move a document to the project trash. This action is reversible: documents in trash can be restored until the trash is emptied.

Instructions

Move a document to the project trash. This is reversible: the document can be listed with list_trash and brought back with restore_document until the trash is emptied in Scrivener. Deleting an already-trashed document is a no-op. Requires an open project and a valid document id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoWrite even if the project appears open in Scrivener. Default false, which refuses the write to protect against your changes being overwritten by Scrivener on save.
documentIdYesScrivener document UUID, as returned by get_structure (a binder item "id").
Behavior4/5

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

The description adds significant behavioral context beyond annotations, such as the reversible trash operation, the no-op for already-trashed documents, and the requirement for an open project and valid document ID. Annotations already declare idempotent and destructive hints, and the description enriches understanding without contradiction.

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 three front-loaded sentences. The first sentence states the core action, the second elaborates on reversibility and related tools, and the third gives prerequisites. Every sentence adds value without redundancy.

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?

The description is fairly complete for a simple reversible deletion tool, covering core behavior, safety (reversibility), and prerequisites. It does not mention the force parameter, but schema coverage is 100% so the agent can retrieve it. Minor gap but overall good completeness.

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%, so the baseline is 3. The description does not add information about parameters beyond what is in the schema (e.g., the force parameter is not mentioned). It meets the baseline but provides no extra value for parameter understanding.

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 clearly states the tool moves a document to the project trash, distinguishing it from other document operations and trash-related siblings like list_trash and restore_document. It also clarifies the no-op behavior for already-trashed documents, providing specific verb and resource context.

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 explains the reversible nature and mentions related tools (list_trash, restore_document), giving implied usage guidance. It states prerequisites (open project, valid document id) but does not explicitly list alternatives or when not to use the tool. The context is clear but lacks exclusions.

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/writerslogic/scrivener-mcp'

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