Skip to main content
Glama
media-cloud-mcp

media-cloud-mcp

by nchafni

Sample stories

sample_stories
Read-only

Retrieve a random sample of news stories matching a query and date range to quickly assess coverage and understand topic attention.

Instructions

Get a random sample of stories matching a query, for a quick read of the coverage.

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": "sample_stories"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoStories 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?

The annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description does add one meaningful behavioral trait beyond them, that results are a random sample rather than a complete or ordered set, but says nothing about how representative the sample is or how sampling interacts with the limit.

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 that names the operation, the scope, and the intended use with no filler. Nothing in it is redundant with the name or title in a wasteful way.

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?

The tool is a simple read with full schema coverage and an output schema, so the description does not need to explain return values. What is missing is routing context relative to sibling tools (list_stories, count_stories, count_stories_over_time), which an agent must resolve on its own.

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 each parameter (limit, query, start_date, end_date, source_ids, collection_ids) documented in the schema, including the query syntax and pointer to the query-guide resource. The description adds no parameter-level meaning beyond that, 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?

The description states a specific verb and resource ('Get a random sample of stories') plus a qualifying scope ('matching a query'). It implicitly separates itself from an exhaustive listing tool via 'random sample', but it never names a sibling such as list_stories or count_stories, so the differentiation must be inferred.

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?

'For a quick read of the coverage' implies the use case, i.e. orientation rather than exhaustive retrieval or counting. However, there is no explicit when-not guidance and no named alternative for callers who actually need a full listing or counts.

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