Skip to main content
Glama

Delete Task Document

delete_task_document
Destructive

Use this when working with RetailHardHat documents records in the connected organization. Remove a task document using the application's normal file-deletion rules. No change occurs until a human approves the exact request in Settings > MCP and execute_approved_action is called. MCP approval requirements are configurable by the organization administrator; business workflow approvals always apply.

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": {
      "taskId": "<taskId>",
      "documentId": "<documentId>"
    },
    "name": "delete_task_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYes
documentIdYes

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and non-idempotency, so the safety profile is known. The description earns credit beyond that by disclosing the approval gate, the exact follow-up call (execute_approved_action), and that org admins configure MCP approval requirements while business workflow approvals always apply. It stops short of saying whether the deletion is recoverable or what 'normal file-deletion rules' concretely mean.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The approval-flow sentences are dense and useful, but the lead sentence ('Use this when working with RetailHardHat documents records in the connected organization') is awkward filler that delays the actual purpose. The core action is buried in sentence two rather than front-loaded.

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?

With a destructive, non-idempotent, approval-gated mutation, the description covers the two things an agent most needs: what is removed and that a human approval step intervenes. An output schema exists so return values need not be explained. Remaining gaps are the undocumented parameters and the vague reference to 'normal file-deletion rules', but the operational picture is largely complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description mentions neither taskId nor documentId — no guidance on where to source them, whether the document must belong to that task, or what happens on a mismatch. With two required identifiers and zero documentation anywhere, the description should have compensated and does not.

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?

The second sentence gives a specific verb and resource: 'Remove a task document using the application's normal file-deletion rules.' That is unambiguous against the mass of sibling tools. It does not, however, distinguish itself from near-neighbours like delete_task, update_task_document, or list_task_documents, and the opening sentence is generic boilerplate that adds no identifying information.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does give a real usage path — nothing happens until a human approves in Settings > MCP and execute_approved_action is called — which tells the agent this is a two-step flow. But it never says when to choose deletion over alternatives (e.g. detaching vs. deleting, or deleting the task vs. just the document), nor any preconditions such as ownership or document state.

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