Topic distribution
get_topic_distributionCounts of offline LDA topic assignments, optionally over time. Topic labels are interpretive model outputs; exact topic_id filters select assignments rather than keyword matches. Reports unclassified coverage.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_topic_distribution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exact | No | AND values. Fields: subject/spatial/author/language/country/newspaper/topic_id/min_prob/scored_by; country_raw=whole cell; polarity:<model>. | |
| top_n | No | Topics given their own band in over_time (default 8, max 15) | |
| subset | No | articles (default) | references | |
| country | No | Exact country name (accents optional) | |
| date_to | No | ||
| keyword | No | ||
| subject | No | Exact tag | |
| min_prob | No | 0-1; keep only assignments at or above this probability | |
| date_from | No | Inclusive date bounds: YYYY[-MM[-DD]] | |
| newspaper | No | Newspaper/periodical substring | |
| over_time | No | Also return per-year counts for the leading topics | |
| hijri_year | No | ||
| hijri_month | No | ||
| keyword_mode | No | literal: the whole keyword as one substring | |
| keyword_aliases | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| span | No | ||
| view | Yes | ||
| subset | Yes | ||
| topics | Yes | ||
| filters | Yes | ||
| periods | No | ||
| classified | Yes | ||
| total_matches | Yes | ||
| trend_by_topic | No | ||
| series_by_topic | No |