Skip to main content
Glama

Airlok

Удалить загруженный файл

delete_upload_file
DestructiveIdempotent

Удалить один файл из загрузок приложения на хостинге и сразу пересчитать место. Необратимо: загруженные файлы не копируются. Только если человек попросил удалить именно этот файл. Требует токен с правом публикации.

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": {
      "app": "<app>",
      "name": "<name>"
    },
    "name": "delete_upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesid приложения, его имя или «сервер/имя»
nameYesимя файла из list_upload_files

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (which already flag destructiveHint and idempotentHint), the description discloses that the deletion is irreversible because uploaded files are not copied/backed up, that free space is recalculated immediately, and that a token with publish rights is required. These are exactly the side effects and authorization facts an agent needs before committing 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.

Conciseness5/5

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

Three short sentences, front-loaded with the action and immediately followed by the irreversibility warning and the usage condition. Every sentence carries distinct information; 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 two-parameter destructive tool with no output schema, the description covers purpose, irreversibility, side effect, and auth requirement. It does not say what a success/failure result looks like or what happens if the file is absent, a small gap given the destructive nature.

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%, and the schema already explains that 'app' accepts an id, name, or 'server/name' and that 'name' comes from list_upload_files. The description adds only the implicit notion of a single file and does not elaborate further, so the baseline 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?

The description names a specific verb and a tightly scoped resource: deleting ONE file from the app's uploads on the host, plus an immediate quota recalculation. That scope ('один файл из загрузок приложения') cleanly separates it from whole-object siblings such as delete_app or delete_server.

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?

It gives a clear positive-use condition — only when the person explicitly asked to delete this particular file — which functions as a guardrail against proactive deletion. It stops short of naming the obvious prerequisites or alternatives (e.g., use list_upload_files to obtain the name, use delete_app for whole-app removal), so it is strong but not exhaustive.

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