Skip to main content
Glama

Manage files

manage_files
Destructive

Use this when the task is about files, directories, archives, or filesystem search on one paired computer. Choose exactly one operation; parameters must contain only that operation’s arguments and are validated against its closed schema. Write, edit, move, permission, and delete operations can change or remove local data or fail on OS permissions, while read and search operations leave files unchanged. Use read_file instead for one known text file so the native file preview remains available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deviceYesReMCP device id returned by list_devices.
operationYesConcrete runtime operation to perform inside this domain.
parametersNoArguments for the selected operation. The selected operation keeps its original closed input schema.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoOptional structured result data for follow-up reasoning and tool calls.
textYesConcise human-readable result of the tool call.

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 only say readOnlyHint=false and destructiveHint=true; the description adds category-level behavior beyond that: write/edit/move/permission/delete operations 'can change or remove local data or fail on OS permissions' while read and search operations 'leave files unchanged'. It also discloses the OS-permission failure mode. Consistent with the annotations — no contradiction.

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?

Four sentences, appropriately front-loaded with scope followed by call structure, safety, and sibling routing, with every sentence earning its place for a tool of this complexity. Not a 5 because sentence 3 packs two ideas (destructive categories and safe categories) into one long compound sentence, and sentence 2 partially echoes the schema's parameters description.

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 29-operation dispatcher with a rich conditional schema, full parameter coverage, and an output schema, the description covers selection, call structure, and safety adequately. It does not mention the search-session lifecycle (start_search → get_more_search_results → stop_search) or the device parameter, though both are documented in the 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% and the schema's own top-level parameters field already describes the closed per-operation schema. The description adds the genuinely useful rule that parameters must contain only the selected operation's arguments and that exactly one operation must be chosen, which clarifies the conditional dispatch pattern that the schema alone does not make obvious.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific scope — 'files, directories, archives, or filesystem search on one paired computer' — and differentiates from the read_file sibling. It stops short of 5 because 'manage files' is an umbrella over 29 sub-operations; the concrete set of actions is delegated to the schema enum rather than stated in the description.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when ('task is about files, directories, archives, or filesystem search'), an explicit when-not with a named alternative ('Use read_file instead for one known text file so the native file preview remains available'), and the dispatcher instruction to choose exactly one operation whose parameters are validated against its closed schema. Nothing is left to inference.

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