Skip to main content
Glama
ryft-io

IcebergMCP

by ryft-io

get_table_properties

Retrieve detailed properties of a specific table within an Iceberg data lakehouse, including metadata and schema information, for streamlined data management and analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceYes
table_nameYes

Implementation Reference

  • Handler function for the get_table_properties MCP tool. Loads the Iceberg catalog and table, retrieves partition specs, sort orders, snapshot summary (size and records), and table properties.
    @mcp.tool() def get_table_properties( namespace: str, table_name: str ) -> dict: catalog: Catalog = get_catalog() table_obj = catalog.load_table((namespace, table_name)) partition_specs = [p.dict() for p in table_obj.metadata.partition_specs] sort_orders = [s.dict() for s in table_obj.metadata.sort_orders] current_snapshot = table_obj.current_snapshot() if not current_snapshot or not current_snapshot.summary: return {} return { "total_size_in_bytes": current_snapshot.summary["total-files-size"], "total_records": current_snapshot.summary["total-records"], "partition_specs": partition_specs, "sort_orders": sort_orders, **table_obj.properties }

Other Tools

Related 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/ryft-io/iceberg-mcp'

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