get_frequency_distribution
Retrieve frequency distribution of a query in a corpus by specifying attributes and context positions. Analyze word usage patterns efficiently.
Instructions
Get frequency distribution for a query
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": {
"corpname": "<corpname>",
"q": "<q>",
"ml1attr": "<ml1attr>",
"ml1ctx": "<ml1ctx>"
},
"name": "get_frequency_distribution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Query string | |
| format | No | Response format | json |
| ml1ctx | Yes | Context position for first attribute | |
| ml2ctx | No | Context position for second attribute (optional) | |
| ml1attr | Yes | First frequency attribute | |
| ml2attr | No | Second frequency attribute (optional) | |
| corpname | Yes | Name of the corpus |