Skip to main content
Glama
ellmos-filecommander-mcp

ellmos-filecommander-mcp

Batch Rename

fc_batch_rename
Destructive

Batch rename files by removing prefixes or suffixes, replacing text, or auto-detecting patterns, with a dry-run preview option.

Instructions

Renames files by pattern: remove prefix/suffix, replace, or auto-detect.

Args:

  • directory (string): Directory with the files

  • mode (string): "remove_prefix" | "remove_suffix" | "replace" | "auto_detect"

  • pattern (string, optional): Text to remove/replace

  • replacement (string, optional): Replacement text (for replace mode)

  • extensions (string, optional): Filter by extensions

  • dry_run (boolean): Preview only

Examples:

  • Remove prefix: mode="remove_prefix", pattern="backup_"

  • Auto-detect: mode="auto_detect" detects common prefixes

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": {
      "directory": "<directory>",
      "mode": "<mode>"
    },
    "name": "fc_batch_rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesMode
dry_runNoPreview only
patternNoText to remove/replace
directoryYesDirectory
extensionsNoFilter extensions
replacementNoReplacement text

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.5
  2. Removedv1.9.3
  3. First observedv1.7.8

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is carried structurally. The description adds the meaningful detail that dry_run is 'preview only', but it never says renames are irreversible, what happens on name collisions, or whether a dry run reports what would change — gaps that matter for a destructive batch mutation.

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?

Front-loaded with the core purpose, then Args, then Examples — a scannable structure with no filler prose. It loses a point only because the Args list duplicates descriptions already present in the schema at 100% coverage.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-idempotent filesystem mutation with no output schema, the description covers modes and dry-run but says nothing about what the call returns (counts, renamed paths, errors) or failure behavior. An agent can invoke it, but cannot predict the result of the call.

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%, so the schema already documents all six parameters; the Args block largely restates it. The one piece of added value is explaining that auto_detect 'detects common prefixes', which gives the enum member meaning beyond the bare value name.

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?

States a specific verb and resource ('Renames files') and enumerates the four operating modes, so the agent knows exactly what capability this provides. It does not explicitly distinguish itself from single-file siblings like fc_move or fc_str_replace, but the batch/pattern framing is clear enough to separate it in practice.

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

Usage Guidelines3/5

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

The mode list and two examples imply when each mode applies, which is real usage guidance. However, there is no statement of when to prefer this over fc_move/fc_str_replace, no preconditions (existing files, naming collisions), and no guidance on choosing between the modes beyond the two examples.

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