get_table_context
Retrieve schema details for a table or view in a DBeaver connection, including columns, comments, keys, indexes, and approximate row count, without reading data rows.
Instructions
读取DBeaver连接内精确database/schema中的表或视图字段、注释、主外键、索引和近似行数;不读取业务行。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"connection": "<connection>",
"database": "<database>",
"schema": "<schema>",
"table": "<table>"
},
"name": "get_table_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| schema | Yes | 所选database中的精确schema名字;未知时先用list_schemas或省略search_catalog的schema跨schema搜索。 | |
| database | Yes | 通过list_databases发现的精确PostgreSQL数据库名;不得猜测或传地址。 | |
| connection | Yes | DBeaver中已有PostgreSQL连接的显示名称或连接ID;不得传地址、账号或密码。 |