Skip to main content
Glama
rayss868

PC Controller MCP Server

by rayss868

file_write

Write text content to any file on a Windows PC, creating the target file and missing parent directories automatically. Ideal for generating config files, scripts, or saving process output by fully overwriting existing files.

Instructions

Write text content to a file on this Windows PC. If the file does not exist, it will be created automatically along with any missing parent directories (auto-create directory). If the file already exists, its entire content will be overwritten (full replacement). Use this to create new configuration files, save processed data output, write source code, generate scripts, or update files by rewriting their full content. Path must be absolute. Content is written in UTF-8 encoding.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path to the target file. Example: D:\Projects\app\config.json. Parent directories will be created automatically if they don't exist.
contentYesThe full text content to write into the file. Can be JSON, source code, configuration, or any text.
Install Server

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries full burden and it does so thoroughly: it explains automatic file/directory creation, full overwrite of existing content, requirement for absolute path, and UTF-8 encoding. These are exactly the behavioral traits that matter for a write operation and are not present in any structured fields.

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 and well-structured: main action first, then behavior, then use cases, then constraints. Every sentence adds value without redundancy. It is neither overlong nor terse, and the front-loading makes it easy for an agent to grasp the core purpose immediately.

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?

The tool is simple (two string parameters, no output schema), and the description covers the essential operational details: path requirements, overwrite behavior, auto-creation, encoding, and use cases. It does not mention what the tool returns on success or failure, but that is a minor gap for a write operation; an agent can still invoke it correctly based on available information.

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?

The schema already documents both parameters completely (100% coverage), including examples and the auto-create directory behavior in the path description. The tool description adds the UTF-8 encoding detail, which is a useful extra, but it does not significantly enrich parameter meaning beyond the schema. The baseline of 3 applies because the schema carries the load.

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 opens with a clear, specific action: 'Write text content to a file on this Windows PC.' It then lists concrete use cases (create config files, save processed data, write source code, generate scripts) that distinguish it from sibling tools like file_read, dir_list, and file_search. The verb+resource+scope is precise and non-tautological.

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 provides explicit use cases ('Use this to create new configuration files, save processed data output, write source code...') and states the overwrite behavior, which implies when it is appropriate. It does not explicitly name alternatives or say 'do not use when only appending', but the context is clear enough for an agent to decide between write and other file operations.

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

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/rayss868/pc-controller-mcp-server'

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