arango_create_index
Create indexes on ArangoDB collections to improve query performance. Supports persistent, hash, skiplist, TTL, fulltext, and geo index types.
Instructions
Create an index on a collection (persistent, hash, skiplist, ttl, fulltext, geo).
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": {
"collection": "<collection>",
"fields": "<fields>"
},
"name": "arango_create_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Name of the collection to create index on | |
| type | No | Type of index to create | persistent |
| fields | Yes | Field paths to index | |
| unique | No | Whether the index should enforce uniqueness | |
| sparse | No | Whether the index should be sparse (ignore null values) | |
| deduplicate | No | Whether to deduplicate index entries | |
| name | No | Custom name for the index | |
| in_background | No | Whether to create index in background | |
| ttl | No | TTL seconds (expireAfter) for TTL index | |
| expireAfter | No | Alias for ttl (expireAfter) | |
| minLength | No | Minimum length for fulltext index | |
| geoJson | No | If true, fields are in GeoJSON format for geo index | |
| database | No | Database override |