Skip to main content
Glama

MCP Python Interpreter

by yzfly

read_file

Access and retrieve the content of any file within size limits using the MCP Python Interpreter. Specify the file path and optional size cap to safely read and return the data.

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/yzfly/mcp-python-interpreter'

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