Skip to main content
Glama

Gnews Top Headlines

gnews_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 the plan cap (free 10, paid up to 100) with title, description, source, and publication 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": {},
    "name": "gnews_top_headlines"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoOnly articles published at or before this time. ISO 8601 date or datetime; a bare date means 23:59:59Z
maxNoMax articles to return (1-100, default 10). GNews caps this by plan (free 10); see requested/returned in the response
fromNoOnly articles published at or after this time. ISO 8601 date or datetime; a bare date means 00:00:00Z
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
requestedNoArticles asked for (max)
empty_reasonNoPresent when GNews matched articles but delivered none: before_free_window (from is older than the free plan history of 30 days) or filtered_out. Never no_match while total_articles is above 0
window_checkNoPresent when articles fall outside the window
total_articlesYesTotal number of top headline articles
window_appliedNoThe from/to window sent upstream (ISO 8601 UTC), null for an open end
window_historyNoPlan-history caveat when from is over 30 days ago
count_explanationNoPresent when returned < requested: why (GNews plan cap or too few matches)
empty_explanationNoPlain-words account of why a matched total came back with no articles
plan_cap_observedNoPer-request cap observed on the GNews plan behind the key
articles_outside_windowNoReturned articles dated outside the window

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / empty_explanation
      Added value: +{
      +  "description": "Plain-words account of why a matched total came back with no articles",
      +  "type": "string"
      +}
    • addedOutput schema / properties / empty_reason
      Added value: +{
      +  "description": "Present when GNews matched articles but delivered none: before_free_window (from is older than the free plan history of 30 days) or filtered_out. Never no_match while total_articles is above 0",
      +  "type": "string"
      +}
  2. Changed10 schema fields changed
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "Only articles published at or after this time. ISO 8601 date or datetime; a bare date means 00:00:00Z",
      +  "type": "string"
      +}
    • changedInput schema / properties / max / description
      Previous value: -"Max articles to return (1-100, default 10)"New value: +"Max articles to return (1-100, default 10). GNews caps this by plan (free 10); see requested/returned in the response"
    • addedInput schema / properties / to
      Added value: +{
      +  "description": "Only articles published at or before this time. ISO 8601 date or datetime; a bare date means 23:59:59Z",
      +  "type": "string"
      +}
    • addedOutput schema / properties / articles_outside_window
      Added value: +{
      +  "description": "Returned articles dated outside the window",
      +  "type": "number"
      +}
    • addedOutput schema / properties / count_explanation
      Added value: +{
      +  "description": "Present when returned < requested: why (GNews plan cap or too few matches)",
      +  "type": "string"
      +}
    • addedOutput schema / properties / plan_cap_observed
      Added value: +{
      +  "description": "Per-request cap observed on the GNews plan behind the key",
      +  "type": "number"
      +}
    • addedOutput schema / properties / requested
      Added value: +{
      +  "description": "Articles asked for (max)",
      +  "type": "number"
      +}
    • addedOutput schema / properties / window_applied
      Added value: +{
      +  "description": "The from/to window sent upstream (ISO 8601 UTC), null for an open end",
      +  "type": "object"
      +}
    • addedOutput schema / properties / window_check
      Added value: +{
      +  "description": "Present when articles fall outside the window",
      +  "type": "string"
      +}
    • addedOutput schema / properties / window_history
      Added value: +{
      +  "description": "Plan-history caveat when from is over 30 days ago",
      +  "type": "string"
      +}
  3. Added

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, and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: it requires a user-supplied API key and warns that results are capped by plan tier (free 10, paid up to 100), which tells the agent to expect truncated results rather than a full set.

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 sentences, front-loaded with purpose before filters and caps, with essentially no filler. Minor redundancy remains: the enumerated category list duplicates the schema's enum-like description and the returned-field list partly duplicates the existing output schema.

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?

For a simple read-only fetch whose schema and output schema are both rich, the description covers the essentials an agent needs: auth requirement, available filters, and plan-based result caps. Only the lack of explicit sibling routing keeps it from being fully complete.

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%, so all seven parameters (including ISO 8601 semantics for from/to and the 1-100 range for max) are already fully documented in the schema. The description only restates the category, country, and language concepts, adding no syntax or behavioral detail beyond the structured data, so 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?

"Fetch current top news headlines from GNews" gives a specific verb (fetch) and resource (top headlines), and the absence of a query parameter implicitly separates it from the sibling gnews_search_news. It is clear but never names or contrasts the alternative explicitly, so differentiation rests on inference.

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?

It states the BYO API key prerequisite and that filtering is optional, which is useful context for invocation. However, there is no explicit when-to-use versus gnews_search_news guidance, nor any statement of exclusions or limits on combining filters, leaving routing to the agent.

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.