get_schema_rag_context
Retrieves compact MySQL schema details for LLM context windows, including tables, columns, keys, relationships, and row estimates; use keyword filtering to focus on relevant tables.
Instructions
🎯 AI-OPTIMIZED: Returns ultra-compact schema information (tables, columns, keys, relationships, comments, row estimates) designed specifically for LLM context windows. Use keyword_filter for concept-focused schema discovery.
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_rag_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Optional: specific database name | |
| max_tables | No | Optional: maximum number of tables to include (default 50, max 200) | |
| max_columns | No | Optional: maximum number of columns per table (default 12, max 200) | |
| keyword_filter | No | Optional: only include tables relevant to this keyword, ranked by table names, column names, and comments | |
| include_comments | No | Optional: include TABLE_COMMENT and COLUMN_COMMENT metadata (default: false) | |
| include_relationships | No | Whether to include FK relationships section (default: true) |