ai_summarize_schema
Generate a natural language overview of a database schema, breaking it into modules, core entities, and relationships for easier understanding and LLM alignment.
Instructions
对整库 schema 做自然语言概述: 总览、模块划分 (按前缀)、核心实体 (列数 + 命中模式)、关键关系。便于用户理解大库,或在生成前对齐 LLM 的 mental model。
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_names": "<table_names>"
},
"name": "ai_summarize_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_names | Yes | 整库表名列表 | |
| foreign_keys | No | 可选 FK 关系 [{from_table, to_table, ...}] | |
| table_column_counts | No | 可选, {表名: 列数} 用于推断核心实体 |