mydatabase_search_schema
Explore schema by fuzzy-searching a table name to retrieve its DDL, related parent/child table DDLs, foreign-key hints, and semantic metadata before writing queries.
Instructions
CRITICAL TOOL FOR SCHEMA EXPLORATION: Use this FIRST before writing queries. Fuzzy-searches a table name and returns its DDL plus direct parent/child table DDLs (Auto-Join Context), inferred FK hints, and semantic dictionary entries from metadata.json when configured. If templates.json is loaded, reminds you to use the 'query_templates' prompt for business metrics. Do NOT use execute_safe_query for schema exploration.
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": {
"query": "<query>"
},
"name": "mydatabase_search_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The name of the table or entity to search for (e.g. 'users', 'invoices'). |