Skip to main content
Glama

gdelt_context

Read-only

Search recent (last 72 hours) GDELT-monitored news for sentences where every query term appears together, returning the matching sentence plus surrounding context — unlike gdelt-search, which matches terms anywhere in the article with no snippet.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "gdelt_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd of an absolute time window. Same formats as from.
fromNoStart of an absolute time window. Accepts YYYY-MM-DD, RFC3339, or GDELT's raw YYYYMMDDHHMMSS. Cannot be combined with timespan; GDELT caps this API's window at 72 hours.
sortNoResult order. Allowed values: relevance (default), datedesc, dateasc.
queryYesGDELT query string. All terms must co-occur in the same sentence (unlike gdelt-search). Supports quoted phrases, (a OR b), domain:example.com. Required.
domainNoConvenience domain filter, appended to query as domain:VALUE.
is_quoteNoOnly return sentences GDELT identified as a quotation.
languageNoSource-language filter (GDELT's searchlang parameter). Space-segmented languages only (excludes CJK and similar).
timespanNoRelative time window ending now, e.g. 30min, 6h, 3d. Cannot be combined with from/to. GDELT caps this API's window at 72 hours.
maxrecordsNoRows to return, default 75, max 200 (GDELT's own hard cap for this endpoint; there is no pagination cursor beyond this).

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, non-idempotent behavior, so the description's added value is the operational constraints: the 72-hour recency cap and the sentence-co-occurrence matching semantics, both of which shape query design. It does not mention rate limits, result ordering defaults beyond what the schema says, or upstream GDELT quirks, keeping it below a 5.

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?

A single front-loaded sentence that leads with scope and recency before the sibling contrast. It is dense but every clause carries information; the em-dash contrast could be trimmed, but nothing is redundant or buried.

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?

An output schema exists, so return values need no explanation, and the description covers the remaining essentials: matching semantics, recency window, and differentiation from the sibling. Nothing an agent needs in order to call this correctly is missing.

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% and the schema itself documents the from/to vs. timespan exclusivity, the 72-hour cap, maxrecords default/max with no pagination, and the language caveat. The description adds essentially no new per-parameter meaning; its co-occurrence note duplicates the query parameter's own description. Baseline 3 applies.

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 and resource ('Search recent ... GDELT-monitored news for sentences'), the exact matching semantics (all query terms co-occur in one sentence), and the return shape (matching sentence plus surrounding context). It then names the sibling gdelt-search and the behavioral difference (article-level matching, no snippet), so an agent can separate the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'unlike gdelt-search' clause gives a clear selection rule: use this when sentence-level co-occurrence and a snippet matter, otherwise use the broader sibling. Explicit when-not conditions and other GDELT siblings (timeline, tonechart) go unmentioned, but the guidance is sufficient for correct routing between the two most confusable tools.

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.