Skip to main content
Glama

Delete Research Document

research_document_delete
DestructiveIdempotent

Permanently deletes one research document of a project, with its notes, items and sources; this cannot be undone. Give the revision you read (research_document_get), or leave it out to delete the current version; if the document changed since that revision the call fails with a conflict and deletes nothing. Repeating it after success reports the document as not found. Free.

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": {
      "project_id": "<project_id>",
      "document_id": "<document_id>"
    },
    "name": "research_document_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
revisionNoThe revision of the research document you read (revision of research_document_get). Leave it out to use the current one. If it changed since, the call fails with a conflict and changes nothing.
verbosityNoconcise: short summary of the answer; full: the whole answer. Only shapes the output.
project_idYesProject ID, as listed by projects_list; it must belong to the authenticated organization.
document_idYesDocument ID from research_documents_list.
idempotency_keyNoOptional and ignored: this call never charges, and a key does not make a repeated call safe.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, yet the description still adds substantive detail: the cascade to notes, items and sources, that the operation is irreversible, that a revision conflict aborts the whole call ('deletes nothing'), and that a repeat after success surfaces as not-found. The 'Free' note also rules out billing concerns.

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?

Front-loaded with the destructive fact and the cascade, then the revision semantics, then the edge cases. It is dense but every clause carries information; the only mild redundancy is repeating 'deletes nothing' versus 'cannot be undone', which are distinct facts.

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 destructive 5-parameter tool with no output schema, the description covers destruction scope, irreversibility, concurrency conflict handling and post-success behavior. The one omission is what the call returns on success, which matters somewhat given there is no output schema to fall back on.

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 description coverage is 100%, so the schema already explains revision, verbosity, project_id, document_id and idempotency_key. The description's revision guidance largely restates the schema's own wording, adding no new syntax or constraint beyond it. Baseline 3 applies where the schema does the heavy lifting.

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 ('Permanently deletes one research document of a project') and immediately scopes the blast radius ('with its notes, items and sources'). An agent can distinguish this from research_document_update or research_document_save purely from the description, and the reference to research_document_get clarifies the read-before-delete pairing.

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 tells the agent when to pass the revision ('the revision you read') and when to omit it ('leave it out to delete the current version'), plus what happens on staleness. It does not name an alternative for the modify-instead-of-delete case, which is the one remaining gap.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources