Skip to main content
Glama
Codepage Bridge MCP

Codepage Bridge MCP

by skyispainted

Write a file to the local filesystem.

Write

Creates or replaces local files at an absolute path, storing provided content while preserving existing encoding and line-ending conventions.

Instructions

Writes a file to the local filesystem.

Usage:

  • This tool will overwrite the existing file if there is one at the provided path.

  • If this is an existing file, you MUST use the Read tool first to read the file's contents. This tool will fail if you did not read the file first.

  • Prefer the Edit tool for modifying existing files — it only sends the diff. Only use this tool to create new files or for complete rewrites.

  • NEVER create documentation files (*.md) or README files unless explicitly requested by the User.

  • Only use emojis if the user explicitly requests it. Avoid writing emojis to files unless asked.

  • Line endings and encoding are handled for you: content may use LF or CRLF and the existing file's style is kept. Never inspect or rewrite a file just to fix line endings.

  • The success message states the encoding and line endings that were preserved. That is authoritative; no follow-up read or shell check is needed.

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": {
      "file_path": "<file_path>",
      "content": "<content>"
    },
    "name": "Write"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesThe content to write to the file
file_pathYesThe absolute path to the file to write (must be absolute, not relative)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the entire behavioral burden and does so: it discloses destructive overwrite semantics, a hard runtime failure if the file was not read first, and that encoding/line endings are auto-preserved with an authoritative success message. These are exactly the non-obvious traits an agent would otherwise discover by breaking files.

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 core action is front-loaded in one sentence, followed by a bulleted usage list where every line prevents a concrete failure mode (unnamed file, wasted diff, unwanted README, needless follow-up read). Nothing is redundant with the title or schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation tool with no annotations and no output schema, the description covers prerequisites, overwrite risk, sibling routing, and even what the return message reports. An agent has everything needed to call it correctly on the first attempt.

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 both parameters (file_path, content) are already documented, including the absolute-path requirement. The description adds no parameter-level detail beyond the schema, which is acceptable at full coverage but leaves this at the baseline.

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?

States a specific verb and resource ('Writes a file to the local filesystem') and immediately distinguishes itself from the sibling 'Edit' tool by scope ('create new files or for complete rewrites'). An agent can choose between Write, Edit, and Read without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use ('create new files or complete rewrites'), when-not ('Prefer the Edit tool for modifying existing files'), a hard prerequisite ('you MUST use the Read tool first'), and a prohibition on unsolicited documentation files. This is the full when/when-not/alternatives triad with concrete failure conditions.

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

Deploy Server

Other Tools