list_foreign_keys
Fetch foreign key constraints for a MySQL table or list all foreign keys in the current database. Filter by table name to inspect relationships.
Instructions
List foreign keys for one table, or all in the current database.
Args: table_name: Optional table name. Empty = all foreign keys.
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": "list_foreign_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |