Skip to main content
Glama

Mediastack Latest News

mediastack_latest_news
Read-onlyIdempotent

Get the latest news headlines. Optionally filter by category, country, or language. Returns the most recent articles with titles, descriptions, sources, and URLs.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "_apiKey": "your-mediastack-api-key"
    },
    "name": "mediastack_latest_news"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results to return (1-100, default 25)
_apiKeyYesMediastack API key
countriesNoComma-separated ISO2 country codes (e.g., "us,gb")
categoriesNoComma-separated categories: business, technology, science, health, sports, entertainment, general

Output Schema

NameRequiredDescriptionDefault
countYesNumber of articles returned in this response
totalYesTotal number of latest articles available
articlesYesList of latest news articles

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered by structured data. The description adds only that results are the "most recent articles," while omitting rate limits, result-page behavior, or auth requirements beyond the schema's _apiKey.

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?

Three short sentences, front-loaded with the core action and filtering capability. Little waste, though the third sentence restates return fields that the output schema already supplies.

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?

For a read-only, single-endpoint retrieval tool with a documented schema and an output schema, the core is covered. The phantom "language" parameter and the absent routing guidance to mediastack_search_news leave the definition adequate but not complete.

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

Parameters2/5

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

Schema coverage is 100%, so the baseline would be 3, but the description actively introduces a "language" filter that does not exist among the schema's properties (limit, _apiKey, countries, categories). That mismatch risks an agent attempting an unsupported filter, which is worse than adding no parameter detail at all.

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?

"Get the latest news headlines" names a specific verb and resource, and "latest" signals a recency-oriented retrieval distinct from mediastack_search_news. However, it never names or contrasts that sibling explicitly, so an agent must infer the division of labor.

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 description implies a use case (pull current headlines, optionally narrowed) but gives no explicit when-to-use versus when-not-to-use guidance and no reference to the search sibling for keyword or historical queries. Usage is inferable, not stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.