List table constraints
hana_list_constraintsList primary key, unique, check, and foreign key constraints for any table by querying SAP HANA's system catalogs, enabling quick schema analysis.
Instructions
List primary key, unique, check, and foreign key constraints for a table (SYS.CONSTRAINTS + SYS.REFERENTIAL_CONSTRAINTS).
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": "hana_list_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | Table name | |
| schema_name | No | Schema name (defaults to HANA_SCHEMA) | |
| catalog_database | No | MDC catalog database for SYS.* (overrides HANA_METADATA_CATALOG_DATABASE) |