Skip to main content
Glama

trash_doc

Destructive

Move an AFFiNE doc to the trash by id or title, or restore it with restore=true; permanent deletion is not performed.

Instructions

Move a doc to the AFFiNE trash, or restore it with restore=true. Nothing is deleted for good

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": {
      "doc": "<doc>"
    },
    "name": "trash_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
docYesDoc id or title
restoreNo
workspaceNoWorkspace id or name, leave out for the default workspace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag this as a non-read-only, destructive-pattern mutation, and the description usefully adds the reversibility fact (soft delete to trash) that annotations cannot convey. It stops short of stating permission requirements or what happens when restoring a doc that is not in the trash.

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?

Two tight sentences, with the primary action and the reversibility guarantee front-loaded. No wasted wording.

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, single-required-argument tool with annotations and no output schema, this is nearly complete: action, inverse action, and safety profile are all covered. Only edge-case behavior on restore is left unstated.

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 67% and the schema itself documents 'doc' and 'workspace' but leaves the 'restore' boolean bare; the description fills that gap by explaining restore=true. Beyond that it adds no format or naming guidance (e.g., id vs title disambiguation) over what the schema already provides.

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?

Names a specific verb and resource ('Move a doc to the AFFiNE trash') plus the inverse operation via restore=true, so the agent knows exactly what the tool does. It does not name any sibling tool or explicitly contrast itself with a hard-delete path, which keeps it short of a 5.

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 gives clear operating context: use it to trash a doc, or set restore=true to undo that. The 'Nothing is deleted for good' line implicitly steers agents away from expecting permanent removal, but there is no explicit when-not or alternative-sibling routing.

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