Skip to main content
Glama

Enhanced Directory Context MCP Server

by PWalaGov

create_file

Generate and write content to a new file at a specified path with optional encoding and overwrite settings, streamlining file creation in Enhanced Directory Context MCP Server projects.

Instructions

Create a new file with specified content

Input Schema

NameRequiredDescriptionDefault
contentYesContent to write to the file
encodingNoFile encoding (default: utf8)utf8
overwriteNoOverwrite if file already exists
pathYesFile path relative to working directory

Input Schema (JSON Schema)

{ "properties": { "content": { "description": "Content to write to the file", "type": "string" }, "encoding": { "default": "utf8", "description": "File encoding (default: utf8)", "type": "string" }, "overwrite": { "default": false, "description": "Overwrite if file already exists", "type": "boolean" }, "path": { "description": "File path relative to working directory", "type": "string" } }, "required": [ "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/PWalaGov/File-Control-MCP'

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