schema_foreign_keys
List foreign key relationships for a MySQL database or specific table, with options to filter by direction (incoming, outgoing, or all).
Instructions
List foreign key relationships for a database or specific table (incoming + outgoing)
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": {
"database": "<database>"
},
"name": "schema_foreign_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Optional: filter by table name | |
| database | Yes | Database name | |
| direction | No | When table is set: 'all' (default), 'incoming', or 'outgoing' |