Skip to main content
Glama
elcamino

newsapi-ai-mcp

by elcamino

Search news events

newsapi_search_events
Read-onlyIdempotent

Search clusters of articles reporting the same real-world event to see what happened around a topic and spot broad coverage, using filters for dates, languages, and sources.

Instructions

Search events: clusters of articles (often across languages) reporting on the same real-world happening. Good for 'what happened around X' and for spotting stories with broad coverage. Same filters as article search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoLanguage filter, ISO 639-2 three-letter codes, e.g. eng, deu, fra, spa, ita, zho.
pageNo
countNoMax 50.
sort_byNosize = number of articles.date
date_endNoLatest publishing date, YYYY-MM-DD.
keywordsNoKeyword(s) or phrase(s) to search for.
sort_ascNo
days_backNoConvenience: sets date_start to today minus N days (ignored if date_start is set).
date_startNoEarliest publishing date, YYYY-MM-DD.
result_langNoPreferred language for titles/summaries (eng, deu, …).
source_urisNoSource URIs (usually domains like heise.de, theverge.com) – via newsapi_suggest kind=sources.
concept_urisNoConcept URIs (Wikipedia URLs) – get them via newsapi_suggest kind=concepts.
min_articlesNoOnly events with at least N articles.
category_urisNoCategory URIs, e.g. dmoz/Computers/Artificial_Intelligence or news/Technology – via newsapi_suggest kind=categories.
location_urisNoContent about these locations (Wikipedia URLs) – via newsapi_suggest kind=locations.
max_sentimentNo
min_sentimentNoMin sentiment -1..1 (only English content has sentiment).
summary_charsNo
advanced_queryNoAdvanced Query Language object; replaces simple filters.
ignore_keywordsNoExclude results mentioning any of these keywords.
response_formatNocompact (default): trimmed, token-friendly JSON. raw: the unmodified API response.compact
concept_operatorNo
keyword_locationNoWhere keywords must appear: body (default), title (high precision), or body,title.
keyword_operatorNoWhether ALL (and) or ANY (or) keywords must match.and
source_group_urisNoSource group URIs (curated lists such as top news sources) – via newsapi_suggest kind=source_groups.
ignore_source_urisNoExclude these sources.
keyword_search_modeNophrase (default): words of a phrase near each other; exact: exact match; simple: words anywhere.
source_location_urisNoOnly sources based in these locations (Wikipedia URLs, e.g. http://en.wikipedia.org/wiki/Germany).
force_max_data_time_windowNoRestrict search to the last 7 or 31 days. Cheaper: queries reaching beyond 31 days consume more tokens (archive).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so safety and determinism are covered. The description adds the cross-language nature of event clusters, which hints at multilingual results, but says nothing about pagination, result shape, or the token cost implied by the archive window.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the definition of an event before the use-case hint. No filler or repetition of the title.

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?

For a 29-parameter, no-output-schema tool this is thin: the agent gets a definition of events but no sense of the returned structure (clusters, summaries, counts) or the practical cost/pagination considerations. The schema carries parameter detail, but the description leaves notable gaps for a complex tool.

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 83%, so the schema already documents nearly all 29 parameters, including the time-window and filter semantics. The description only says filters are the same as article search, adding no new parameter meaning, which matches the baseline for high coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (search) and resource (events), and uniquely defines the resource as 'clusters of articles (often across languages) reporting on the same real-world happening.' This definition is what lets an agent distinguish it from newsapi_search_articles, which is named explicitly.

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?

Offers usage context ('good for what happened around X' and spotting broad coverage), which is helpful but not a routing decision. It never states when to prefer this over newsapi_search_articles or newsapi_get_event, so the agent must infer the choice from the definition of an event.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.