List archive formats
list_archive_formatsLists archive formats that create_archive can write and flags which are available, helping you choose a supported format before creating an archive.
Instructions
List the archive formats create_archive can write and whether each works here. Use when: before create_archive, to pick an available format. Instead: list_archive_members to read an archive; create_archive (needs --mcp-write) to make one. Requires: --mcp-tools archive. Behavior: read-only, no arguments; availability depends on installed packages (zstd, py7zr). Time limit: 15 s. Returns: {formats: [{format, label, suffix, single (one file in), encrypts (takes a password), available, reason}], levels (create_archive's level values: fast, normal, best)}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_archive_formats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| levels | Yes | ||
| formats | Yes |