Skip to main content
Glama
media-cloud-mcp

media-cloud-mcp

by nchafni

Top languages

top_languages
Read-only

Rank languages by story count for a query and date range, optionally filtered by media source or collection.

Instructions

Get the most common languages among stories matching 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_languages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoLanguages 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

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. Beyond that, the description adds essentially nothing: it doesn't say results are ranked by frequency, how ties or limits are handled, or what corpus scope (sources vs collections) applies. It restates the purpose rather than disclosing behavior.

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

Conciseness4/5

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

A single front-loaded sentence with no filler. It is efficient, though the brevity edges toward under-specification rather than crispness, since nothing follows the core statement.

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?

With six well-documented parameters, an output schema, and annotations covering safety, the structured fields carry most of the load. The description's gap is the missing framing that this is a ranked aggregation requiring a date range, but the omission is minor given how rich the schema is.

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%, including the query syntax pointer to mediacloud://query-guide, source_ids/collection_ids discovery hints, and the limit bound. The description adds no parameter meaning of its own, so the baseline 3 applies: the schema does all the work.

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 common languages' scoped to 'stories matching a query'. An agent can tell this is a frequency-aggregation over a filtered story set. It stops short of naming how it differs from close siblings like top_words or top_sources, so it lands at 4 rather than 5.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: no mention that it aggregates rather than lists, no hint of when to choose it over top_sources/top_words, and no note that query plus a date range are mandatory. Usage is only inferable from the name and the schema's required fields.

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