Skip to main content
Glama

Extract service file archive

extract_service_file_archive

Extracts zip, tar, tar.gz, tgz, or .gz archives into a new destination path on a VPS, writing only regular files and directories while skipping links and special files.

Instructions

Firecracker only: extract a zip, tar, tar.gz/tgz or single .gz archive with the guest agent's own reader into a destination that must not exist (default: next to the archive, without the archive extension). Only regular files and directories are written; links, devices and FIFOs are skipped, owners ignored, setuid/setgid/sticky masked; at most 100,000 entries and min(10 GiB, 90 % of free space). Always an operation this tool follows for waitSeconds (default 60). Needs agent capability services.guest-files-extract-v1 (agent_update_required otherwise; Cloud VPS: unsupported_service_type). 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>",
      "archive": "<archive>"
    },
    "name": "extract_service_file_archive"
  }
}

Input Schema

NameRequiredDescriptionDefault
archiveYesAbsolute path inside the server (UTF-8, at most 4096 bytes, no . or .. components)
orderNoYesTenant-owned service order number, e.g. VP12345
destinationNoAbsolute path inside the server (UTF-8, at most 4096 bytes, no . or .. components)
waitSecondsNoHow long this tool waits for a slow guest's operation before returning its operationId (default 30, recursive delete and extract 60)
confirmSystemPathNoSet true only after the user explicitly approved changing this operating-system path (otherwise 409 filesSystemPathConfirmRequired)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.17

TDQS

A4.5/5.0
Behavior5/5

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

Goes far beyond the annotations: entry limit of 100,000, size cap of min(10 GiB, 90 % free space), skipping of links/devices/FIFOs, masking of setuid/setgid/sticky bits, owner/original-permission handling, and the refusal of execution-equivalent targets. Permission requirements ('files:manage on a FULL-access API key', 'vm:files:write') and the 423 2FA-lock behavior are disclosed. This is exactly the behavioral detail the readOnly/destructive/idempotent hints cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

Purpose and constraints are front-loaded in the first sentence, which is good. However, the remainder is a long semicolon-chained paragraph mixing limits, permissions, refusal rules, availability reasons and HTTP status codes, which makes the operationally important exclusions harder to scan than they should be.

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 complex, environment-gated extraction tool with five parameters and no output schema, the description covers extraction semantics, hard limits, permission model, unsupported-target refusals and every availability failure mode (agent_update_required, node_update_required, feature_disabled, unsupported_service_type). It also tells the caller that operationId is returned when waitSeconds elapses, which substitutes for the missing output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100 %, so the baseline is 3, but the description adds real meaning the schema lacks: destination must not exist, its default is next to the archive without the extension, and the extract-specific waitSeconds default of 60. It also explains confirmSystemPath indirectly through the filesSystemPathConfirmRequired refusal, though it could explicitly tie that error to the confirmSystemPath parameter.

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 plus resource ('extract a zip, tar, tar.gz/tgz or single .gz archive') and immediately names the engine constraint ('Firecracker only') and the destination rule ('must not exist'). An agent can distinguish this from write_service_file or move_service_file 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?

Gives strong conditional context: requires guest agent capability services.guest-files-extract-v1, and Cloud VPS needs the VDS file-manager switch to be on. It does not explicitly name a sibling alternative for the unsupported or refused cases, so the when-not path is stated as an error rather than a redirection.

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