Skip to main content
Glama

Gnews Search News

gnews_search_news
Read-onlyIdempotent

Search global news articles by keyword (e.g., "climate change", "AI regulation"). Returns title, description, content snippet, source, and publication date. Supports language, country and a from/to publication window. Results per request are capped by the GNews plan behind the key (free plan: 10, paid: 25/50/100); the response reports requested, returned and the shortfall reason, and states original_query and applied_query. Free plan history is the last 30 days: a window older than that returns total_articles above 0 with no articles, and empty_reason then says before_free_window rather than no_match.

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": {
      "query": "artificial intelligence regulation"
    },
    "name": "gnews_search_news"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoAlias for query
toNoOnly articles published at or before this time. ISO 8601 date or datetime; a bare date means 23:59:59Z. On the free plan GNews requires this to be at least 12 hours ago
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 (e.g. "2026-09-16" or "2026-09-16T00:00:00Z"); a bare date means 00:00:00Z. GNews free plan history is the last 30 days, paid plans since 2020
langNoLanguage code (e.g., "en", "fr", "de"). Default: "en"
queryNoSearch keywords (e.g., "electric vehicles"). Alias: q
_apiKeyYesGNews API key
countryNoCountry code (e.g., "us", "gb", "ca"). Omit for global

Output Schema

NameRequiredDescriptionDefault
articlesYesList of news articles matching the search
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
applied_queryNoQuery actually sent to GNews
original_queryNoQuery as the caller sent it
total_articlesYesTotal number of articles matching the search query
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
query_rewrittenNoTrue when applied_query differs from original_query
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. Changed17 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "query": "artificial intelligence regulation"
      -  },
      -  {
      -    "country": "us",
      -    "lang": "en",
      -    "max": 25,
      -    "query": "climate change"
      -  }
      -]New value: +[
      +  {
      +    "query": "artificial intelligence regulation"
      +  },
      +  {
      +    "from": "2026-11-01",
      +    "max": 10,
      +    "query": "Apple Inc.",
      +    "to": "2026-11-10"
      +  },
      +  {
      +    "country": "us",
      +    "lang": "en",
      +    "max": 25,
      +    "query": "climate change"
      +  }
      +]
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "Only articles published at or after this time. ISO 8601 date or datetime (e.g. \"2026-09-16\" or \"2026-09-16T00:00:00Z\"); a bare date means 00:00:00Z. GNews free plan history is the last 30 days, paid plans since 2020",
      +  "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 / q
      Added value: +{
      +  "description": "Alias for query",
      +  "type": "string"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"Search keywords (e.g., \"electric vehicles\")"New value: +"Search keywords (e.g., \"electric vehicles\"). Alias: q"
    • 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. On the free plan GNews requires this to be at least 12 hours ago",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "_apiKey",
      -  "query"
      -]New value: +[
      +  "_apiKey"
      +]
    • addedOutput schema / properties / applied_query
      Added value: +{
      +  "description": "Query actually sent to GNews",
      +  "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 / original_query
      Added value: +{
      +  "description": "Query as the caller sent it",
      +  "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 / query_rewritten
      Added value: +{
      +  "description": "True when applied_query differs from original_query",
      +  "type": "boolean"
      +}
    • 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.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), yet the description adds substantial operational context the agent could not get elsewhere: per-plan result caps, the requested/returned/shortfall reporting fields, original_query vs applied_query, and the free-plan 30-day history limit with the specific before_free_window empty_reason. This is exactly the kind of behavior-beyond-annotations disclosure that matters for a search that can silently return total_articles > 0 with zero articles.

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?

Front-loaded with purpose, then progressively narrower operational detail; every sentence carries real information rather than filler. There is minor duplication of the free-plan cap and date-window rules already stated in the parameter schema descriptions, which keeps it just short of a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, open-world, plan-limited search with an output schema already present, the description supplies everything an agent needs to call it correctly and interpret surprising results. The response-shape hints and the before_free_window edge case close the only gap that would otherwise cause misdiagnosis of empty results.

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 every parameter including both aliases (q/query) and the ISO 8601 date semantics is already documented in structured fields. The description's restatement of language/country/from-to support and the plan cap on results adds only marginal meaning beyond the schema, 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?

The description opens with a specific verb and resource ("Search global news articles by keyword") and immediately enumerates the filter dimensions (language, country, from/to window). It does not name the obvious sibling gnews_top_headlines or state how this differs from it, so an agent must infer the keyword-vs-headlines split from the tool name alone.

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 context is implied by the examples and by the plan/history caveats, which effectively tell the agent when a query will return nothing useful. However, there is no explicit when-to-use-this-vs-alternatives guidance, and the sibling gnews_top_headlines is never referenced as the alternative for non-keyword browsing.

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.