gdelt_context
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of an absolute time window. Same formats as from. | |
| from | No | Start 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. | |
| sort | No | Result order. Allowed values: relevance (default), datedesc, dateasc. | |
| query | Yes | GDELT query string. All terms must co-occur in the same sentence (unlike gdelt-search). Supports quoted phrases, (a OR b), domain:example.com. Required. | |
| domain | No | Convenience domain filter, appended to query as domain:VALUE. | |
| is_quote | No | Only return sentences GDELT identified as a quotation. | |
| language | No | Source-language filter (GDELT's searchlang parameter). Space-segmented languages only (excludes CJK and similar). | |
| timespan | No | Relative time window ending now, e.g. 30min, 6h, 3d. Cannot be combined with from/to. GDELT caps this API's window at 72 hours. | |
| maxrecords | No | Rows to return, default 75, max 200 (GDELT's own hard cap for this endpoint; there is no pagination cursor beyond this). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The tool result payload (shape varies per tool; see each tool's docs resource). |