Skip to main content
Glama

Newsapi Top Headlines

newsapi_top_headlines
Read-onlyIdempotent

Fetch current top news headlines from NewsAPI, filterable by country (ISO 2-letter), category (business/entertainment/health/science/sports/technology), publisher sources, or keyword q. Returns article title, description, source, URL, and published date.

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": {
      "country": "us",
      "category": "technology",
      "pageSize": 10
    },
    "name": "newsapi_top_headlines"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
pageNo
countryNo
sourcesNo
categoryNo
pageSizeNo

Output Schema

NameRequiredDescriptionDefault
statusNoAPI response status
articlesNoArray of article objects
totalResultsNoTotal number of results available

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/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 covered and the bar is lower. The description adds the filterable axes, but omits practical behavior such as API key/auth requirements, rate limits, pagination, result caps, and whether filters can be combined freely (NewsAPI restricts mixing q with sources/category on this endpoint).

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?

Two sentences, front-loaded with the action and scope, then the filters and return shape — no filler. The return-field sentence is slightly redundant given an output schema exists, but it is short enough to earn its place.

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, so return values need not be enumerated, and annotations cover safety. But with six optional parameters at 0% schema coverage, the definition should also explain pagination parameters and any filter-combination constraints; without them the agent can construct a technically invalid or inefficient call.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry the load, and it does for most of the surface: it names country as ISO 2-letter and spells out the accepted category enum values, plus identifies sources as publishers and q as keyword. It leaves page and pageSize entirely unexplained (defaults, max values, pagination behavior), which is the remaining gap.

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 uses a specific verb+resource ('Fetch current top news headlines from NewsAPI') and enumerates the filter dimensions, so the agent knows exactly what the call does. It does not, however, contrast itself with siblings such as newsapi_sources or everything, which likely overlap on sourcing or broader article search.

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?

The word 'current' implies recency-oriented use, but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative for older or full-text article search. The agent must infer that this is the headlining/latest endpoint rather than a general search.

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.