Skip to main content
Glama

delete_file

DestructiveIdempotent

Удалить файл или папку в облаке — УДАЛЯЕТ ДАННЫЕ. key — path или provider id из list_files; is_dir — удалять папку рекурсивно. У провайдеров с корзиной восстановимо, у остальных — нет. Для дублей безопаснее execute_dedup (garантирует сохранение копии). Ошибки: 502 — провайдер отказал. Требует Pro.

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": {
      "connection_id": "<connection_id>",
      "key": "<key>"
    },
    "name": "delete_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
is_dirNo
connection_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/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, but the description adds real value beyond them: reversibility depends on whether the provider has a trash bin, error 502 means the provider refused, and the operation requires a Pro plan. That is exactly the operational context an agent needs before invoking a destructive tool.

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?

The destructive warning is front-loaded, followed by parameter notes, reversibility, the safer alternative, and error semantics in tight order. Every clause carries distinct information with 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 destructive, open-world tool with no output schema, the description covers impact, reversibility, tier requirement, error behavior, and an alternative. The only meaningful gap is the unexplained `connection_id` parameter, which an agent must guess or infer from siblings.

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 0%, so the description must carry the burden. It explains `key` as a path or provider id from list_files and `is_dir` as recursive folder deletion, but says nothing about `connection_id`, leaving one of three parameters undocumented. Partial compensation for the coverage gap warrants a 3.

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 ('Удалить файл или папку в облаке') and immediately flags the destructive nature in caps. It also distinguishes the folder case via `is_dir`, so an agent can separate this from siblings like move_file or execute_dedup without opening 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 routes the duplicate-file case to execute_dedup because it guarantees a copy is kept, which is a genuine when-to-use-this-instead signal. It also points at list_files as the source of `key`. It lacks explicit when-not-to-use guidance for non-duplicate bulk deletions or shared resources, so it stops short of a 5.

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