Gnews Search News
gnews_search_newsSearch 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
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Alias for query | |
| to | No | 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 | |
| max | No | Max articles to return (1-100, default 10). GNews caps this by plan (free 10); see requested/returned in the response | |
| from | No | 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 | |
| lang | No | Language code (e.g., "en", "fr", "de"). Default: "en" | |
| query | No | Search keywords (e.g., "electric vehicles"). Alias: q | |
| _apiKey | Yes | GNews API key | |
| country | No | Country code (e.g., "us", "gb", "ca"). Omit for global |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| articles | Yes | List of news articles matching the search | |
| returned | Yes | Number of articles returned in this response | |
| requested | No | Articles asked for (max) | |
| empty_reason | No | 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 | |
| window_check | No | Present when articles fall outside the window | |
| applied_query | No | Query actually sent to GNews | |
| original_query | No | Query as the caller sent it | |
| total_articles | Yes | Total number of articles matching the search query | |
| window_applied | No | The from/to window sent upstream (ISO 8601 UTC), null for an open end | |
| window_history | No | Plan-history caveat when from is over 30 days ago | |
| query_rewritten | No | True when applied_query differs from original_query | |
| count_explanation | No | Present when returned < requested: why (GNews plan cap or too few matches) | |
| empty_explanation | No | Plain-words account of why a matched total came back with no articles | |
| plan_cap_observed | No | Per-request cap observed on the GNews plan behind the key | |
| articles_outside_window | No | Returned articles dated outside the window |