Skip to main content
Glama
xctmyy

win-cli-mcp-tmyy

by xctmyy

write_file

Write file content to a specified path, accepting plain text or base64 to avoid JSON escaping, with automatic normalization of line endings and indentation.

Instructions

Write content to a file directly (no line range). Supports both plain text (content) and base64-encoded content (content_base64) to avoid JSON escaping issues. Content is auto-normalized: CRLF/CR converted to LF, leading/trailing newlines stripped, and common indentation removed (dedent) for 'content' (not for 'content_base64').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFull path to write the file. Supports all drives. Example: D:\output\result.txt
contentNoContent to write (plain text). Alternative to content_base64.
encodingNoFile encoding (default: utf8)
content_base64NoBase64-encoded content to write. Alternative to content, avoids JSON escaping issues for complex content (code with newlines, quotes, etc.).
return_contentNoOptional: If true, returns the new file content in the response. Default: false (not returned).
Behavior4/5

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

With no annotations provided, the description carries the full burden and handles it well by disclosing auto-normalization behaviors (CRLF/CR conversion, newline stripping, dedent) and noting the difference between content and content_base64. It does not mention overwrite semantics or error handling, but the disclosed behaviors are significant and valuable.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, front-loaded with the core purpose, and uses only two sentences. Every clause adds relevant detail without redundancy, making it an efficient and well-structured summary.

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 tool with 5 parameters and no output schema, the description covers the essential aspects: purpose, content alternatives, normalization, and the optional return_content behavior. It does not detail response formats or failure modes, but these are sufficiently implied for a file-write operation.

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%, so the baseline is 3. The description adds value by explaining the normalization differences between content and content_base64, and clarifies that dedent applies only to content. This enriches the parameter meaning beyond the schema descriptions.

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 explicitly states 'Write content to a file directly (no line range),' which clearly defines the action and resource. It also distinguishes itself from the sibling tool edit_file by noting the lack of line-range targeting, making the purpose unambiguous.

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 hints at usage context by saying 'directly (no line range),' implying this is for full writes rather than edits. It also advises when to use content_base64 to avoid JSON escaping issues, but does not explicitly state when not to use the tool or mention alternatives. This is clear context without exclusionary guidance.

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/xctmyy/win-cli-mcp-tmyy'

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