Skip to main content
Glama
ellmos-ai

ellmos-filecommander-mcp

Fix Encoding

fc_fix_encoding
Idempotent

Detect and fix file text encoding errors (mojibake, double UTF-8) such as garbled German umlauts (ä → ae) and Euro sign issues (€ → EUR). Optionally preview changes or create a backup before applying repairs.

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the file
dry_runNoPreview only
create_backupNoCreate backup
Behavior4/5

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

The description discloses that the tool repairs common mojibake patterns and explains the dry_run and create_backup params. Annotations indicate idempotentHint=true (repairs are safe to reapply) and destructiveHint=false (no destructive side effects), which aligns with the description. The only minor gap is not explicitly stating that the file is modified in place.

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?

The description is efficient with two paragraphs: first defining the purpose and listing arguments, then giving specific repair examples. It front-loads the core action (detect and repair encoding errors). Minor improvement possible by moving examples lower.

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?

Given no output schema, the description could mention return values (e.g., count of fixes), but the examples and parameter descriptions provide enough for basic use. The tool's complexity is low, so the description is mostly complete.

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?

The description adds value beyond the schema by listing the three arguments (path, dry_run, create_backup) with slightly more context (e.g., 'Show only problems' vs schema's 'Preview only'). Since schema description coverage is 100%, the baseline is 3, but the explicit listing and examples add extra clarity.

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?

The description clearly states that the tool detects and repairs encoding errors, with specific examples like mojibake and double UTF-8. It also distinguishes itself from sibling tools like fc_fix_json and fc_str_replace by focusing on encoding issues.

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?

The description implies use for files with encoding errors, but does not explicitly state when to use this tool vs alternatives like fc_cleanup_file or fc_str_replace. However, the specific examples of German umlauts and euro sign repairs provide clear context for typical use cases.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ellmos-ai/ellmos-filecommander-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server