list_table
Retrieve all tables from your current Bitable workspace to view and manage your data structure.
Instructions
list table for current bitable
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/bitable_mcp/server.py:28-35 (handler)The handler function list_table executes the tool logic: connects to the bitable database pool, creates a cursor, runs 'show tables' query, fetches results, and returns them as JSON string.
def list_table() -> list[str]: with conn_pool.connect() as connection: logger.error("connection %r", connection) logger.error("bot %r", connection.bot) logger.error("bot %r", connection.bot.personal_base_token) cursor = connection.cursor() tables = cursor.execute('show tables').fetchall() return json.dumps(tables) - src/bitable_mcp/server.py:24-27 (registration)The @mcp.tool decorator registers the list_table function as a tool named 'list_table' with its description.
@mcp.tool( name="list_table", description="list table for current bitable", )