Skip to main content
Glama
Xuanwo

MCP Server for Apache OpenDAL™

by Xuanwo

get_info

Retrieve file metadata from storage services like S3, Azure Blob, and Google Cloud Storage to understand file properties and structure.

Instructions

Get metadata of file in OpenDAL service Args: uri: resource URI, e.g. mys3://path/to/file Returns: File metadata information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriYes

Implementation Reference

  • The get_info tool handler: retrieves file metadata (size, type) from OpenDAL storage using the provided URI. Registered via @mcp.tool() decorator.
    @mcp.tool() async def get_info(uri: str) -> str: """ Get metadata of file in OpenDAL service Args: uri: resource URI, e.g. mys3://path/to/file Returns: File metadata information """ logger.debug(f"Getting file info: {uri}") try: resource, path = parse_uri(uri) metadata = await resource.stat(path) result = f"File: {path}\n" result += f"Size: {metadata.content_length} bytes\n" result += f"Type: {metadata.content_type}\n" return result except Exception as e: logger.error(f"Failed to get file info: {e!s}") return f"Error: {e!s}"

Other Tools

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/Xuanwo/mcp-server-opendal'

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