Update an index
update_indexChange an index; fields left out are left as they are. A new pointer or valueType starts a rebuild (the index is unusable until it finishes). Turning alias on is refused if values aren't unique or are too long. Turning guard on hides existing values from token reads at once. 1 request.
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": {
"list": "<list>",
"index": "<index>"
},
"name": "update_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list | Yes | The list: its id or pathName | |
| name | No | The index's name | |
| tags | No | Tags (at most 20). Replaces the existing tags | |
| alias | No | Items can be found by this value instead of their id. Values must be unique and at most 1024 characters; one alias index per list | |
| guard | No | Hide the value at pointer from token reads (only an identity that owns an item can read it). Not combinable with the other flags | |
| index | Yes | The index: its id or pathName | |
| pointer | No | A JSON pointer to the indexed value in each item's data, e.g. /score | |
| sorting | No | Items can be ordered by it | |
| pathName | No | The name used to filter and order by it, e.g. "score". Unique in the list, and stored lowercase | |
| activated | No | ||
| filtering | No | Items can be filtered by it | |
| searching | No | search_items searches its values | |
| valueType | No | How values are compared (default string) | |
| description | No | ||
| defaultOrderDirection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes |