List Indexes
kb_list_indexesList indexes on a table, showing columns, uniqueness, and index type. Specify table name; optional schema defaults to 'public'.
Instructions
List all indexes on a table including columns, uniqueness, and index type.
Args:
table (string): Table name
schema (string, optional): Schema name, defaults to DB_SCHEMA env or 'public'
Returns: List of indexes with name, columns, uniqueness, and method (btree/hash/gin/gist).
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": "<table>"
},
"name": "kb_list_indexes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name to list indexes for | |
| schema | No | Schema name (default: from DB_SCHEMA env or 'public') |