Skip to main content
Glama

delete_document

Permanently removes a document from a Hillnote workspace using its full registry path; for tasklist items, use delete_task instead.

Instructions

Delete a document. IMPORTANT: You must provide the full document path from the registry (e.g., "documents/my-document.md" or "documents/folder/my-document.md"). NOTE: Do NOT use this for tasks in tasklists - use delete_task instead.

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": {
      "workspace": "<workspace>",
      "documentId": "<documentId>"
    },
    "name": "delete_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceYesWorkspace path/name
documentIdYesFull document path from registry (e.g., "documents/my-document.md"). MUST be the complete path including "documents/" prefix and file extension.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description bears the full disclosure burden. It correctly flags the hard prerequisite that the identifier must be a complete registry path, but says nothing about whether deletion is permanent or reversible, what permissions are required, or what happens on an invalid path. For a destructive operation that is a meaningful gap.

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?

Verb and resource are front-loaded, then the two critical caveats follow in priority order. It is short and each sentence carries a constraint, though the path example duplicates what the schema already documents.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with a fully documented schema and no output schema, the description covers the invocation essentials and the main routing confusion. It omits the irreversibility/permanence warning that matters most for an unannotated delete tool.

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% and the schema already states that documentId must include the "documents/" prefix and extension with an example. The description's path guidance largely restates the schema rather than adding new meaning, so the baseline 3 applies.

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 opens with a specific verb+resource ("Delete a document") and immediately scopes what it is not for, naming delete_task as the alternative for tasklist tasks. An agent can distinguish this from the delete_task family without opening the schema.

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?

It gives an explicit exclusion ("Do NOT use this for tasks in tasklists") paired with the correct alternative, which is exactly the when-not guidance an agent needs. It stops short of clarifying boundaries against the other delete_* siblings in the catalog, but the single exclusion it does state is unambiguous.

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