Skip to main content
Glama

Modal MCP Server

by smehmood

put_modal_volume_file

Upload files or directories to a Modal volume specified by name, with options to control the remote path and overwrite behavior.

Instructions

Upload a file or directory to a Modal volume. Args: volume_name: Name of the Modal volume to upload to. local_path: Path to the local file or directory to upload. remote_path: Path in the volume to upload to. Defaults to root ("/"). If ending with "/", it's treated as a directory and the file keeps its name. force: If True, overwrite existing files. Defaults to False. Returns: A dictionary containing the result of the upload operation. Raises: Exception: If the upload operation fails for any reason.

Input Schema

NameRequiredDescriptionDefault
forceNo
local_pathYes
remote_pathNo/
volume_nameYes

Input Schema (JSON Schema)

{ "properties": { "force": { "default": false, "title": "Force", "type": "boolean" }, "local_path": { "title": "Local Path", "type": "string" }, "remote_path": { "default": "/", "title": "Remote Path", "type": "string" }, "volume_name": { "title": "Volume Name", "type": "string" } }, "required": [ "volume_name", "local_path" ], "title": "put_modal_volume_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/smehmood/modal-mcp-server'

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