describe_table
Retrieve the structure and metadata of a Bitable table to understand its fields, data types, and configuration for data analysis or integration.
Instructions
describe_table by table name
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Implementation Reference
- src/bitable_mcp/server.py:37-40 (registration)Registration of the 'describe_table' tool using the @mcp.tool decorator.@mcp.tool( name="describe_table", description="describe_table by table name", )
- src/bitable_mcp/server.py:41-50 (handler)Handler function that executes the tool logic: connects to the bitable database, retrieves column information for the specified table, and returns it as JSON.def describe_table(name: str) -> list[str]: with conn_pool.connect() as connection: cursor = connection.cursor() columns, _ = cursor.get_columns({ "select": { "all_columns": True }, "from": name, }) return json.dumps(columns)