Skip to main content
Glama
TripQi

Code Editor MCP Server

by TripQi

convert_file_encoding

Convert file encodings between UTF-8, GBK, and GB2312 formats with configurable error handling and mismatch policies for reliable text processing.

Instructions

Convert files between encodings (utf-8, gbk, gb2312).

Args: file_paths: List of absolute file paths. source_encoding: Current encoding. target_encoding: Desired encoding. error_handling: "strict" | "replace" | "ignore" mismatch_policy: "warn-skip" | "fail-fast" | "force"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathsYes
source_encodingYes
target_encodingYes
error_handlingNostrict
mismatch_policyNowarn-skip

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions parameters like 'error_handling' and 'mismatch_policy' which hint at behavior, but doesn't explain what these mean in practice (e.g., what 'warn-skip' does, whether files are modified in-place, or if backups are created). For a mutation tool with zero annotation coverage, this leaves significant gaps in understanding its effects.

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 appropriately sized and front-loaded: the first sentence states the purpose, followed by a structured 'Args' section. Each sentence earns its place by introducing parameters, though some could be more informative. It avoids redundancy and is efficiently organized.

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?

Given 5 parameters with 0% schema coverage and an output schema (which reduces the need to explain return values), the description is moderately complete. It covers all parameters briefly but lacks details on behavioral traits (e.g., mutation effects, error handling specifics). For a file conversion tool with no annotations, it should do more to explain operational context and risks.

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 0%, so the description must compensate. It lists all 5 parameters with brief explanations (e.g., 'List of absolute file paths'), adding meaning beyond the schema's titles. However, it doesn't provide detailed semantics (e.g., format of encodings, what 'mismatch' refers to), leaving some ambiguity. The description adds value but doesn't fully compensate for the coverage gap.

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 clearly states the tool's purpose: converting files between specific encodings (utf-8, gbk, gb2312). It uses a specific verb ('convert') and identifies the resource ('files'), but doesn't explicitly differentiate from sibling tools like 'edit_block' or 'file_ops' which might also manipulate files. The purpose is clear but lacks sibling differentiation.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'edit_block' or 'file_ops', nor does it specify prerequisites (e.g., file existence, permissions) or contextual triggers (e.g., when encoding issues arise). Usage is implied by the purpose but not explicitly stated.

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/TripQi/code-editor'

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