Skip to main content
Glama

doc.delete

Delete saved browser documents by doc ID or URL, or bulk-remove by site, collection, or crawl ID after confirming the listed items.

Instructions

Remove saved documents. By doc_id or url it deletes one; by site, collection or crawl_id it lists what would go and needs confirm:true to actually do it. The text artifacts are left on disk for artifact tooling to reclaim.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "doc.delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
siteNo
doc_idNo
confirmNoRequired for bulk deletion by site, collection or crawl_id.
crawl_idNo
collectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

The description carries real behavioral weight beyond the annotations: it discloses a two-phase preview-then-confirm deletion for bulk selectors and that text artifacts survive the operation on disk. With readOnlyHint=false already declaring this a mutation, the added value is the confirmation gate and the artifact-retention side effect. It stops short of stating whether deletes are reversible or what the preview response looks like, keeping it at a solid but not exceptional level.

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?

Three sentences, front-loaded with the purpose, then the branching semantics, then the artifact side effect. No filler, no restatement of the name, and each sentence introduces new information.

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 six-parameter destructive tool with no output schema, the description covers the mode split, the confirmation requirement, and post-delete state of artifacts. What is thin is the return shape of the preview/list mode and what confirm:false returns, which an agent would want since no output schema exists to explain it.

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 description coverage is only 17% (only confirm is documented in-schema), so the description must compensate and largely does: it maps url/doc_id to single deletes and site/collection/crawl_id to bulk previews, and references confirm:true explicitly. It does not explain the format of url vs. site or whether crawl_id and collection can be combined, leaving some parameter interaction ambiguous.

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 resource ("Remove saved documents") and immediately splits the tool into two distinct operating modes based on which selector parameter is supplied. An agent can tell what the tool does and how its behavior branches without reading 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?

Explicitly explains which parameter produces which behavior: doc_id/url for single deletes, site/collection/crawl_id for a preview that requires confirm:true to execute. It does not name sibling tools such as doc.get or doc.list as alternatives for inspecting documents, so the routing guidance is internal to this tool rather than against the catalog.

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

Deploy Server

Other Tools