Skip to main content
Glama
ellmos-filecommander-mcp

ellmos-filecommander-mcp

Fix Encoding

fc_fix_encoding
Idempotent

Detects and repairs file encoding errors such as mojibake and double UTF-8, with options to preview issues and create a backup before fixing.

Instructions

Detects and repairs encoding errors (mojibake, double UTF-8).

Args:

  • path (string): Path to the file

  • dry_run (boolean): Only show problems

  • create_backup (boolean): Create backup

Repairs common mojibake patterns like:

  • ä -> ae, ö -> oe, ü -> ue (German umlauts)

  • ß -> ss, € -> EUR

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": {
      "path": "<path>"
    },
    "name": "fc_fix_encoding"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the file
dry_runNoPreview only
create_backupNoCreate backup

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.11.5
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv1.7.8

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety bar is low; the description still adds real substance by disclosing that repairs are lossy transliterations (ä -> ae rather than restoring ä, ß -> ss, € -> EUR), which matters a lot before running a write on a user's file. It does not state what happens on non-encodable or already-clean files, or where the backup lands.

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 purpose in one sentence, then args, then concrete examples. The args block duplicates the schema verbatim and could be dropped, but the pattern examples earn their space by showing what 'repair' concretely means.

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 file-mutating tool with no output schema, the description never says what a run returns (a diff? a count of fixed occurrences?) or what dry_run actually reports, leaving the agent unable to describe results to the user. Annotations and the schema cover safety and inputs adequately, so the gap is narrow but real.

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 description coverage is 100%, so the baseline is 3. The description's args block merely restates the schema ('path: Path to the file', 'dry_run: Only show problems') and adds no format, path-resolution, or backup-default semantics beyond what is already structured.

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 pair and resource: 'Detects and repairs encoding errors (mojibake, double UTF-8)' on files. The encoding-repair domain is distinctive enough to separate it from neighbors like fc_fix_json or fc_convert_format, though it never names those siblings explicitly.

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

Usage Guidelines2/5

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

No when-to-use / when-not-to-use guidance is given; nothing explains why an agent would pick this over fc_convert_format or fc_fix_json. The dry_run 'Only show problems' line hints at a preview-then-apply workflow, but that hint is buried in the args list rather than stated as guidance.

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