Top words
top_wordsRank frequent stemmed terms from matching news stories by query and date range to study framing and compare coverage language.
Instructions
Get the most used terms in a sample of matching stories, to study framing.
Terms are stemmed; each is shown in its most common form.
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": {
"query": "<query>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "top_words"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Terms to return. | |
| query | Yes | Boolean query, e.g. "climate change" AND policy. AND/OR/NOT must be capitalized and phrases need double quotes. Use * to match all stories. Full syntax is in the mediacloud://query-guide resource. | |
| end_date | Yes | Last publication date, YYYY-MM-DD. | |
| source_ids | No | Media sources to search. Find IDs with search_sources. | |
| start_date | Yes | First publication date, YYYY-MM-DD. | |
| collection_ids | No | Collections to search. Find IDs with search_collections. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||