get_table_constraints
Retrieve all constraints (PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK) for a specified Firebird table, with optional type filtering.
Instructions
Return constraints on a table: PRIMARY KEY, FOREIGN KEY, UNIQUE, and CHECK. Returns [{constraint, type, index}]. Prefer inspect_table to get constraints alongside columns and FKs. For full FK details (referenced columns, ON DELETE/UPDATE rules) use get_foreign_keys instead.
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>",
"table": "<table>"
},
"name": "get_table_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database key from list_databases. | |
| table | Yes | Table name. Automatically uppercased. | |
| typeFilter | No | Optional case-insensitive .NET regex to filter by constraint type. Values: 'PRIMARY KEY', 'FOREIGN KEY', 'UNIQUE', 'CHECK'. Omit to return all. |