Skip to main content
Glama

Abort service file upload

abort_service_file_upload
Destructive

Abort an open service file upload and delete its staging file, leaving the target file untouched. Use it only for uploads the user no longer needs.

Instructions

Abort one open upload and remove its staging file (the target file is not touched). Only for an upload the user no longer needs. Requires files:manage on a FULL-access API key as an explicit grant; the hosted connector needs vm:files:write. Execution-equivalent targets (authorized_keys, cron, systemd units, sudoers, PAM, profile files) are refused to every API key (filesExecEquivalentScopeMissing). Availability: Firecracker servers need the updated guest agent (filesUnavailable reason agent_update_required; node_update_required while the host node is not updated yet) and Cloud VPS (KVM) servers need the VDS file-manager switch (reason feature_disabled while it is off); relay any unavailable reason verbatim and never work around it. A server whose 2FA lock is on answers 423.

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": {
      "orderNo": "<orderNo>",
      "uploadId": "<uploadId>"
    },
    "name": "abort_service_file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderNoYesTenant-owned service order number, e.g. VP12345
uploadIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.17

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, yet the description adds substantial unsurfaced behavior: the api-key grant model, the exec-equivalent refusal cases with their error code, the server-type availability gating (agent_update_required, node_update_required, feature_disabled), the instruction to relay reasons verbatim, and the 423 response for 2FA-locked servers. This is well beyond what the structured fields disclose and is consistent with them.

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?

The purpose and its key caveat are front-loaded in sentence one, then permissions, refusal cases, and availability follow in a logical order. The parenthetical error reasons make sentences dense and long, but the detail is operationally load-bearing rather than filler.

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?

For a destructive, two-parameter tool with no output schema, the description covers everything an agent needs: what is destroyed (staging file only), what authorization is required, which targets are refused, which server types are gated, and how a 423 should be interpreted. Nothing material is missing.

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 50%: orderNo carries a description and example, uploadId only a pattern, and the description adds no meaning for either parameter (no explanation of where uploadId comes from or how orderNo scopes the operation). Baseline 3 is the right call since the schema does most of the work, but the uploadId acquisition path is a real gap.

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 — 'Abort one open upload and remove its staging file' — and immediately clarifies scope with '(the target file is not touched)', which is exactly the distinction an agent needs versus sibling delete_service_files. The single-target limitation ('one open upload') is explicit.

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?

'Only for an upload the user no longer needs' gives a clear positive condition plus an implicit exclusion, and the permission prerequisites (files:manage / vm:files:write) tell the agent when the call will be rejected. It stops short of naming a sibling to consult first (e.g. list_service_file_uploads to obtain uploadId), leaving that inference to the agent.

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

Deploy Server

Other Tools