trie_ops
Build a prefix tree from word lists to run exact-match searches, count words by prefix, and generate autocomplete suggestions.
Instructions
Build a trie (prefix tree) from words and perform search, prefix count, and autocomplete queries.
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": {
"words": "<words>"
},
"name": "trie_ops"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| words | Yes | Words to insert into the trie | |
| prefix | No | Prefix for autocomplete suggestions | |
| queries | No | Words to search for (exact match and prefix count) |