Get PG search index metadata
get_pg_search_index_metadataFetch typed reloptions and raw metadata for a single BM25 index to inspect its configuration without parsing reloptions manually.
Instructions
Fetch the parsed reloptions for a single BM25 index (schema.index). Same shape as one entry of list_pg_search_indexes — typed accessors for the 13 documented options plus the raw index_options dict. Raises when the extension is not installed or no BM25 index by that name exists. Returns an object with schema, index, the typed option fields, and index_options (raw reloptions dict for forward-compat).
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": {
"schema": "<schema>",
"index": "<index>"
},
"name": "get_pg_search_index_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| schema | Yes | ||
| database | No | Optional: a database id from list_databases, to target a configured secondary (read-only) database; omit for the primary. Database names that are not configured ids are rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| table | Yes | ||
| schema | Yes | ||
| columns | Yes | ||
| sort_by | No | ||
| key_field | No | ||
| json_fields | Yes | ||
| layer_sizes | No | ||
| text_fields | Yes | ||
| range_fields | Yes | ||
| index_options | Yes | ||
| boolean_fields | Yes | ||
| numeric_fields | Yes | ||
| datetime_fields | Yes | ||
| search_tokenizer | Yes | ||
| mutable_segment_rows | No | ||
| target_segment_count | No | ||
| background_layer_sizes | No |