Skip to main content
Glama

workspace_delete_file

DestructiveIdempotent

Permanently delete a shared workspace file and its history when it should no longer exist; use overwriting instead if the file must remain in a new form.

Instructions

Delete a shared workspace file permanently. There is no undelete; the file and its history are gone. Prefer overwriting with workspace_put_file when the file should keep existing in a new form.

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": {
      "agent": "<agent>",
      "path": "<path>"
    },
    "name": "workspace_delete_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesWorkspace-relative path of the file to delete.
agentYesYour registered agent name.
tokenNoYour per-agent token, on a token-enforced bus.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.12
    • addedInput schema / properties / agent / description
      Added value: +"Your registered agent name."
    • addedInput schema / properties / path / description
      Added value: +"Workspace-relative path of the file to delete."
    • addedInput schema / properties / token / description
      Added value: +"Your per-agent token, on a token-enforced bus."
  2. First observedv0.5.11

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds the crucial detail annotations cannot express: the deletion is irreversible and file history is destroyed with it. It does not discuss token enforcement or failure modes for a missing path, but the safety-critical behavior is covered beyond the structured fields.

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 short sentences, front-loaded with the action and its permanence, then the alternative. No redundant restatement of the tool name and no filler.

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 destructive tool with full schema coverage and complete annotations, the description supplies the irreversibility warning and the routing alternative, which is what an agent most needs. The only small gap is that with no output schema, it does not indicate what a successful call returns.

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%, so path, agent, and token are all documented in the schema itself. The description adds no format, constraint, or edge-case meaning for any parameter (e.g., what happens with a non-existent or directory path), so the baseline of 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?

States a specific verb and resource ('Delete a shared workspace file permanently') plus the durability qualifier, and names the sibling it should be preferred over (workspace_put_file). An agent can distinguish this from workspace_put_file and the read-side siblings without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit routing rule: use this when the file should cease to exist, use workspace_put_file when the file should 'keep existing in a new form.' Both the when-to-use and the when-to-use-something-else are stated rather than inferred.

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