Skip to main content
Glama

list_files

Retrieve file listings from remote zip archives via HTTP, HTTPS, or FTP URLs without downloading the entire archive.

Instructions

Get list of files in a remote zip archive.

Args: url: URL of the remote zip file (http, https, ftp supported)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Implementation Reference

  • The handler function for the 'list_files' tool. It uses the RemoteZip library to open a remote zip file and return a newline-separated list of file names. Includes error handling.
    @mcp.tool() async def list_files(url: str) -> str: """Get list of files in a remote zip archive. Args: url: URL of the remote zip file (http, https, ftp supported) """ try: with RemoteZip(url) as zip_file: files = zip_file.namelist() return "\n".join(files) except Exception as e: return f"Error listing files: {str(e)}"

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/yuriyo/remotezip-mcp'

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