Skip to main content
Glama

Swagger MCP Server

by tuskermanshu

file_writer

Write content to files with automatic directory creation, append or overwrite options, and customizable encoding via Swagger MCP Server’s structured API tool.

Instructions

Write content to the specified file path, with support for automatic directory creation

Input Schema

NameRequiredDescriptionDefault
appendNoWhether to append to an existing file instead of overwriting it
contentYesContent to be written to the file
createDirsNoWhether to automatically create parent directories if they do not exist
encodingNoFile encodingutf8
filePathYesComplete path of the file

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "append": { "default": false, "description": "Whether to append to an existing file instead of overwriting it", "type": "boolean" }, "content": { "description": "Content to be written to the file", "type": "string" }, "createDirs": { "default": true, "description": "Whether to automatically create parent directories if they do not exist", "type": "boolean" }, "encoding": { "default": "utf8", "description": "File encoding", "type": "string" }, "filePath": { "description": "Complete path of the file", "minLength": 1, "type": "string" } }, "required": [ "filePath", "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/tuskermanshu/swagger-mcp-server'

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