list_foreign_keys
Lists all foreign key constraints for a specified MySQL table, optionally within a chosen database, helping you inspect relationships and schema dependencies.
Instructions
Lists all foreign key constraints for a table.
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_name": "<table_name>"
},
"name": "list_foreign_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Optional: specific database name | |
| table_name | Yes | Name of the table |