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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/visidata_mcp/server.py:879-920 (handler)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()}" - src/visidata_mcp/server.py:879-879 (registration)Tool registration - the @mcp.tool() decorator registers get_supported_formats as an available MCP tool.
@mcp.tool()