Skip to main content
Glama

MCP Claude Code

by SDGLBL

write

Write or overwrite files on the local filesystem using an absolute path. Ensure existing files are read first for seamless updates; avoid creating new files unless explicitly required.

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.
  • ALWAYS prefer editing existing files in the codebase. NEVER write new files unless explicitly required.
  • NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested by the User.

Input Schema

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

Input Schema (JSON Schema)

{ "properties": { "content": { "description": "The content to write to the file", "minLength": 1, "title": "Content", "type": "string" }, "file_path": { "description": "The absolute path to the file to write (must be absolute, not relative)", "minLength": 1, "title": "File Path", "type": "string" } }, "required": [ "file_path", "content" ], "type": "object" }

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/SDGLBL/mcp-claude-code'

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