Skip to main content
Glama
by wubbyweb
file_operations_guidelines.mdโ€ข633 B
# File Operations Guidelines ## read_file ```xml <read_file> <path>File path here</path> </read_file> ``` ### Required Parameters: - `path`: The file path to read ### Common Errors to Avoid: - Attempting to read non-existent files - Using incorrect or relative paths - Missing the `path` parameter ### Best Practices: - Always check if a file exists before attempting to modify it - Use `read_file` before `apply_diff` or `search_and_replace` to verify content - For large files, consider using start_line and end_line parameters to read specific sections ## write_to_file ```xml <write_to_file> <path>File path here</path>

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/wubbyweb/mcp-demo'

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