get_schema
Retrieve database structure metadata including tables, columns, data types, primary keys, and indexes to inform query planning. Cached results avoid repeated lookups.
Instructions
获取数据库结构信息,包括所有 Schema 中用户可访问的表名、列名、数据类型、主键、索引等元数据。在执行查询前调用此工具可以帮助理解数据库结构。结果会被缓存以提高性能。
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": "get_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| forceRefresh | No | 是否强制刷新缓存(可选,默认 false)。设为 true 可获取最新的数据库结构。 |