Skip to main content
Glama

Delete files

delete_files
DestructiveIdempotent

Permanently delete files from your Besidka library, including files that are project knowledge (their extracted text is removed with them). The result lists the deleted ids and the skipped ones with a reason: not_found, or storage_error or error (try again). Files are deleted one at a time, so a failure part way keeps the files already deleted. Requires signing in (data:delete).

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": {
      "fileIds": "<fileIds>"
    },
    "name": "delete_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdsYesFile ids from list_files, up to 100 per call

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations (which already declare destructiveHint=true and idempotentHint=true) by disclosing permanence, that extracted text of project-knowledge files is destroyed too, the skipped-id reasons (not_found, storage_error, retryable error), and the partial-failure semantics where an interrupted batch keeps earlier deletions. That is exactly the operational context an agent needs before a destructive call.

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?

Four sentences, front-loaded with the destructive scope before the result shape and auth note, and essentially no filler. The middle sentence packs the error vocabulary densely into a list, which is efficient but slightly thorny on first read.

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

Completeness5/5

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

With no output schema, the description takes on the return-value burden and delivers it, describing the deleted/skipped result structure and reasons. Combined with the partial-failure and permission notes, nothing material is missing for a destructive single-parameter batch 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 description coverage is 100% and the single fileIds parameter already documents source (list_files), the 1-100 bound, and item format, so the description adds little parameter-level meaning. It only implies the ids come from the same source via the skipped-id 'not_found' behavior, which is the baseline 3 for high schema coverage.

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?

Opens with a specific verb+resource ('Permanently delete files from your Besidka library') and immediately disambiguates scope by noting project-knowledge files and their extracted text are included. That distinction separates it from the lookalike sibling delete_project_knowledge_items without the agent needing to open 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 Guidelines3/5

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

Usage is implied by the verb and by the 'Requires signing in (data:delete)' prerequisite, which tells the agent the permission gate. However, it never states when to prefer this over delete_project_knowledge_items or delete_project, nor when not to use it, so the routing decision is left to inference.

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.