Skip to main content
Glama
media-cloud-mcp

media-cloud-mcp

by nchafni

Top sources

top_sources
Read-only

Identify and rank media sources by the number of stories matching a query within a date range, helping compare coverage volume across outlets.

Instructions

Get the media sources publishing the most stories that match 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": {
      "query": "<query>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "top_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoSources 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.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds that results are ranked by publishing volume, which is real behavioral context, but it says nothing about sort order, tie-breaking, or how the result set is bounded. With annotations carrying safety, this is adequate but thin.

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?

A single front-loaded sentence with no filler and no restatement of the title. Every word carries information about what is returned and how it is scoped.

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

Completeness3/5

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

An output schema exists and all six parameters are fully documented, so the description need not cover return values or argument syntax. However, for a tool sitting among several ranked-aggregation and source-lookup siblings, the absence of any routing guidance leaves a genuine gap.

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%, with the query boolean syntax, date formats, limits, and ID-lookup hints all documented in the schema itself. The description contributes no parameter meaning beyond the word "query," so the baseline 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 ("Get") and resource ("media sources") plus the aggregation semantics ("publishing the most stories that match a query"), which separates it from ranked siblings like top_words and top_languages. It never names a sibling or clarifies how it differs from search_sources or count_stories_by_source_over_time, so it stops short of a 5.

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 use case (rank publishers for a query) is implied by "most stories that match a query," but there is no explicit when-to-use, when-not, or pointer to alternatives. An agent must infer from the query/date framing that this is the ranked-aggregation tool rather than a lookup or time-series tool.

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