Skip to main content
Glama
media-cloud-mcp

media-cloud-mcp

by nchafni

Top words

top_words
Read-only

Rank 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

NameRequiredDescriptionDefault
limitNoTerms to return.
queryYesBoolean 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_dateYesLast publication date, YYYY-MM-DD.
source_idsNoMedia sources to search. Find IDs with search_sources.
start_dateYesFirst publication date, YYYY-MM-DD.
collection_idsNoCollections to search. Find IDs with search_collections.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare this read-only, open-world and non-destructive, lowering the bar. The description usefully adds that terms are stemmed and shown in their most common form, which affects how results must be interpreted, but it says nothing about how the sample is drawn or how the limit default interacts with sampling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with zero filler; the core action is front-loaded and the stemming caveat follows as a second, clearly scoped sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema, annotations, and complete parameter documentation, the definition covers what is needed to call the tool and to interpret the stemmed output. The only meaningful gap is the absence of any statement about how the story sample is constructed, which matters for a ranked-terms tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema carries full parameter documentation including query syntax, dates, source/collection IDs and the limit range. The description adds no parameter-specific detail beyond the general notion of a filtered sample, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Get the most used terms in a sample of matching stories") plus the analytic intent ("to study framing"). It is distinguishable from count_* and sample_stories siblings by returning ranked terms, though it never names a sibling for contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase "to study framing" implies an intent context, and "sample of matching stories" implies a query filter is needed, but there is no explicit when-to-use, when-not-to-use, or routing to alternatives such as top_sources or top_languages. Guidance is inferred rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.