Skip to main content
Glama

get_supported_formats

Retrieve supported file formats for data analysis and visualization in VisiData, enabling users to identify compatible data sources for processing.

Instructions

Get a list of supported file formats in VisiData.

Returns: List of supported formats and their descriptions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The get_supported_formats tool implementation - returns a JSON string with a dictionary of supported VisiData file formats and their descriptions. Registered with @mcp.tool() decorator.
    @mcp.tool()
    def get_supported_formats() -> str:
        """
        Get a list of supported file formats in VisiData.
        
        Returns:
            List of supported formats and their descriptions
        """
        try:
            # VisiData supported formats
            formats = {
                "csv": "Comma-separated values",
                "tsv": "Tab-separated values",
                "json": "JavaScript Object Notation",
                "jsonl": "JSON Lines",
                "xlsx": "Microsoft Excel",
                "xls": "Microsoft Excel (legacy)",
                "sqlite": "SQLite database",
                "html": "HTML tables",
                "xml": "XML files",
                "yaml": "YAML files",
                "hdf5": "HDF5 scientific data format",
                "parquet": "Apache Parquet",
                "arrow": "Apache Arrow",
                "pkl": "Python pickle files",
                "zip": "ZIP archives",
                "tar": "TAR archives",
                "gz": "Gzipped files",
                "bz2": "Bzip2 compressed files",
                "xz": "XZ compressed files"
            }
            
            result = {
                "supported_formats": formats,
                "total_formats": len(formats),
                "note": "VisiData supports many more formats through plugins and loaders"
            }
            
            return json.dumps(result, indent=2)
            
        except Exception as e:
            return f"Error getting supported formats: {str(e)}\n{traceback.format_exc()}"
  • Tool registration - the @mcp.tool() decorator registers get_supported_formats as an available MCP tool.
    @mcp.tool()

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/moeloubani/visidata-mcp'

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