Skip to main content
Glama

MCP Python Interpreter

read_file

Read and retrieve content from files with specified size limits for safety. Use this tool to access file data securely within the MCP Python Interpreter environment.

Instructions

Read the content of any file, with size limits for safety. Args: file_path: Path to the file (relative to working directory or absolute) max_size_kb: Maximum file size to read in KB (default: 1024) Returns: str: File content or an error message

Input Schema

NameRequiredDescriptionDefault
file_pathYes
max_size_kbNo

Input Schema (JSON Schema)

{ "properties": { "file_path": { "title": "File Path", "type": "string" }, "max_size_kb": { "default": 1024, "title": "Max Size Kb", "type": "integer" } }, "required": [ "file_path" ], "title": "read_fileArguments", "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/PortPro-Technologies-Inc/mcp-python-interpreter'

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