Skip to main content
Glama

Modal MCP Server

by smehmood

copy_modal_volume_files

Transfer files within a Modal volume by specifying source and destination paths. Use this tool to copy individual files or multiple files to a target directory efficiently, ensuring file management within Modal's serverless cloud environment.

Instructions

Copy files within a Modal volume. Can copy a source file to a destination file or multiple source files to a destination directory. Args: volume_name: Name of the Modal volume to perform copy operation in. paths: List of paths for the copy operation. The last path is the destination, all others are sources. For example: ["source1.txt", "source2.txt", "dest_dir/"] Returns: A dictionary containing the result of the copy operation. Raises: Exception: If the copy operation fails for any reason.

Input Schema

NameRequiredDescriptionDefault
pathsYes
volume_nameYes

Input Schema (JSON Schema)

{ "properties": { "paths": { "items": { "type": "string" }, "title": "Paths", "type": "array" }, "volume_name": { "title": "Volume Name", "type": "string" } }, "required": [ "volume_name", "paths" ], "title": "copy_modal_volume_filesArguments", "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