db_schema
Retrieve table column names, types, nullability, and comments with a 10-minute cache across supported JDBC databases; use it to inspect schema without writing information_schema queries.
Instructions
查表结构(列名/类型/可空/注释),带 10 分钟本地缓存;支持达梦/MySQL/PG/MSSQL/Oracle/SQLite/DB2/ClickHouse/Trino(Presto)/H2。比手写 information_schema 快且省 token。
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": {
"table": "<table>"
},
"name": "db_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | 表名(不区分大小写) | |
| schema | No | schema/owner(默认取连接配置的 database;达梦多 schema 同表名时必填) | |
| refresh | No | 跳过缓存强制刷新 | |
| connection | No | 连接名,默认 default |