Skip to main content
Glama

Top Headlines

top_headlines
Read-onlyIdempotent

Fetch current top news headlines from GNews (requires BYO API key). Optionally filter by category (general, world, nation, business, technology, entertainment, sports, science, health), country code, and language. Returns up to 100 articles with title, description, source, and publication date.

Input Schema

NameRequiredDescriptionDefault
maxNoMax articles to return (1-100, default 10)
langNoLanguage code (e.g., "en"). Default: "en"
_apiKeyYesGNews API key
countryNoCountry code (e.g., "us", "gb"). Omit for global
categoryNoNews category: general, world, nation, business, technology, entertainment, sports, science, health

Output Schema

NameRequiredDescriptionDefault
articlesYesList of top news headlines
returnedYesNumber of articles returned in this response
total_articlesYesTotal number of top headline articles

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "_apiKey": "your-gnews-api-key"
      -  },
      -  {
      -    "_apiKey": "your-gnews-api-key",
      -    "category": "technology",
      -    "country": "gb",
      -    "max": 15
      -  }
      -]New value: +[
      +  {},
      +  {
      +    "category": "technology",
      +    "country": "gb",
      +    "max": 15
      +  }
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive. The description adds genuinely useful context beyond them: the BYO GNews API key requirement and the shape of the results (up to 100 articles with title, description, source, date). It stops short of noting rate limits or quota behavior that a third-party API key implies.

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 front-loaded sentences with no filler; the purpose and auth requirement come first, filters second, return shape last. Minor redundancy in re-listing the category enum that the schema already carries.

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?

Given an output schema exists, return values need not be spelled out, yet they are, and the API key requirement is disclosed. The one gap is routing relative to search_news, which matters given the crowded news/research sibling set.

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 coverage is 100%, so the schema already documents max, lang, country, category and _apiKey. The description restates the category values and the country/language filters but adds no format or default detail beyond what the schema provides, 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?

Specific verb + resource: 'Fetch current top news headlines from GNews'. The filters and return shape are named. However, it never distinguishes itself from the sibling search_news, so an agent cannot tell from the description which one to pick.

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?

Usage is implied by 'current top news headlines' and the optional filter list, but there is no explicit when-to-use, when-not-to-use, or comparison against search_news, which is the obvious alternative for news retrieval.

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.