Skip to main content
Glama

get_event_context

get_event_context
Read-onlyIdempotent

Get the official actual values, pre-release market consensus, and surprise for a specific U.S. macro data release: CPI (US_CPI), Nonfarm Payrolls / jobs report (US_NONFARM_PAYROLLS), PCE inflation (US_PCE), or the ISM Manufacturing / Services PMI (US_ISM_MANUFACTURING / US_ISM_SERVICES).

WHEN TO CALL: whenever the user asks what a release printed or how it compared with expectations, even if they do not mention FX Context. Do not answer these from memory; recent releases are not in your training data. Examples:

  • "What's the latest US PCE?" -> US_PCE

  • "Was core PCE hotter than expected?" -> US_PCE

  • "Did CPI beat expectations?" -> US_CPI

  • "What was the latest NFP?" / "How many jobs were added last month?" -> US_NONFARM_PAYROLLS

  • "Give me the latest US inflation release." -> US_CPI and/or US_PCE

  • "What's the latest ISM Manufacturing PMI?" -> US_ISM_MANUFACTURING

  • "Did ISM Services beat expectations?" -> US_ISM_SERVICES

  • "What were the actual and consensus values?" / "What was the surprise?" -> the release under discussion Omit referencePeriod for the latest release. For a specific release, pass the month the data covers (YYYY-MM), not the month it was published.

WHEN NOT TO CALL: general or educational questions that need no specific release data, e.g. "What is PCE?", "What does NFP stand for?", "Why does CPI matter for FX?", "Explain inflation.", "What is the difference between CPI and PCE?". Use get_upcoming_risks for upcoming release dates, get_market_reaction for price moves after a release, and get_central_bank_changes for central-bank decisions.

RESULT: per-metric official actuals (headline/core, MoM/YoY; ISM: headline PMI index) with publisher provenance; when valid, pre-release consensus and a deterministic actual-minus-consensus surprise. Each observation has consensusStatus (AVAILABLE, NOT_FOUND, NOT_CAPTURED, NOT_AVAILABLE, EXCLUDED_POST_RELEASE, NOT_APPLICABLE) explaining any missing consensus, and revisionStatus (REVISED, UNCHANGED, NOT_CAPTURED). Consensus is valid only when capturedAt is before releaseCutoffAt. ISM (US_ISM_MANUFACTURING, US_ISM_SERVICES) currently returns official actuals only: consensusStatus is NOT_CAPTURED and no surprise is computed, so an ISM beat/miss question cannot be answered from this tool yet. Never treat missing consensus or surprise as zero. Official actuals and third-party consensus keep separate source provenance. No trading recommendations or market-direction predictions.

Input Schema

NameRequiredDescriptionDefault
eventTypeYesCanonical financial event type. Supported values: US_CPI (Consumer Price Index; headline and core CPI) US_NONFARM_PAYROLLS (NFP / jobs report; payrolls, unemployment rate, average hourly earnings) US_PCE (PCE / core PCE price index) US_ISM_MANUFACTURING (ISM Manufacturing PMI, headline index) US_ISM_SERVICES (ISM Services PMI, headline index) Use these values exactly.
referencePeriodNoOptional reference period in YYYY-MM format (e.g. 2026-08). If omitted, the latest available event of that type is returned.

Output Schema

NameRequiredDescriptionDefault
sourceYes
statusYes
eventIdYes
categoryYes
eventTypeYes
releasedAtNo
scheduledAtYes
jurisdictionYes
observationsYes
referencePeriodNo
affectedCurrenciesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / eventType / description
      Previous value: -"Canonical financial event type.\n\nSupported values:\nUS_CPI (Consumer Price Index; headline and core CPI)\nUS_NONFARM_PAYROLLS (NFP / jobs report; payrolls, unemployment rate, average hourly earnings)\nUS_PCE (PCE / core PCE price index)\n\nUse these values exactly."New value: +"Canonical financial event type.\n\nSupported values:\nUS_CPI (Consumer Price Index; headline and core CPI)\nUS_NONFARM_PAYROLLS (NFP / jobs report; payrolls, unemployment rate, average hourly earnings)\nUS_PCE (PCE / core PCE price index)\nUS_ISM_MANUFACTURING (ISM Manufacturing PMI, headline index)\nUS_ISM_SERVICES (ISM Services PMI, headline index)\n\nUse these values exactly."
  2. Changed7 schema fields changed
    • changedInput schema / properties / eventType / description
      Previous value: -"Canonical financial event type.\n\nSupported values:\nUS_CPI\nUS_NONFARM_PAYROLLS\nUS_PCE\n\nUse these values exactly."New value: +"Canonical financial event type.\n\nSupported values:\nUS_CPI (Consumer Price Index; headline and core CPI)\nUS_NONFARM_PAYROLLS (NFP / jobs report; payrolls, unemployment rate, average hourly earnings)\nUS_PCE (PCE / core PCE price index)\n\nUse these values exactly."
    • addedOutput schema / properties / observations / items / properties / consensusStatus
      Added value: +{
      +  "description": "Why the expectation block is present or absent: AVAILABLE, NOT_AVAILABLE, NOT_FOUND, NOT_CAPTURED, EXCLUDED_POST_RELEASE or NOT_APPLICABLE.",
      +  "enum": [
      +    "AVAILABLE",
      +    "NOT_AVAILABLE",
      +    "NOT_FOUND",
      +    "NOT_CAPTURED",
      +    "EXCLUDED_POST_RELEASE",
      +    "NOT_APPLICABLE"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / observations / items / properties / consensusStatusDetail
      Added value: +{
      +  "description": "Human-readable explanation of consensusStatus.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / observations / items / properties / expectation / properties / capturedAt / description
      Added value: +"When the consensus snapshot was captured; always before releaseCutoffAt."
    • addedOutput schema / properties / observations / items / properties / expectation / properties / releaseCutoffAt
      Added value: +{
      +  "description": "Instant the consensus was validated against (capturedAt must be strictly earlier).",
      +  "format": "date-time",
      +  "type": "string"
      +}
    • addedOutput schema / properties / observations / items / properties / expectation / properties / releaseCutoffBasis
      Added value: +{
      +  "description": "Which event timestamp the cutoff came from: RELEASED_AT, or SCHEDULED_AT when the actual release time is not yet recorded.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / observations / items / properties / revisionStatus
      Added value: +{
      +  "description": "Revision state supported by stored vintages: REVISED, UNCHANGED, or NOT_CAPTURED (only the initial vintage is stored; revision state unknown).",
      +  "enum": [
      +    "REVISED",
      +    "UNCHANGED",
      +    "NOT_CAPTURED"
      +  ],
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / eventType / description
      Previous value: -"Canonical FXContext event type: US_CPI, US_NONFARM_PAYROLLS, or US_PCE."New value: +"Canonical financial event type.\n\nSupported values:\nUS_CPI\nUS_NONFARM_PAYROLLS\nUS_PCE\n\nUse these values exactly."
  4. Changed1 schema field changed
    • changedInput schema / properties / eventType / description
      Previous value: -"Canonical FXContext event type, for example US_CPI."New value: +"Canonical FXContext event type: US_CPI, US_NONFARM_PAYROLLS, or US_PCE."
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description goes well beyond them: consensus validity rules (capturedAt before releaseCutoffAt), consensusStatus/revisionStatus enumerations, the current ISM limitation (actuals only, NOT_CAPTURED, no surprise), and the warning never to treat missing consensus as zero. It also sets expectations about separate provenance and the absence of trading recommendations.

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?

Long, but front-loaded and organized under PURPOSE / WHEN TO CALL / WHEN NOT TO CALL / RESULT headers so the agent can scan rather than parse prose. The example list is somewhat repetitive (multiple CPI/PCE phrasings), which costs a point, but nearly every sentence carries routing or behavioral value.

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 a two-parameter lookup with an output schema, the description covers everything the agent needs: which releases are supported, how to phrase the period, what the response contains, how missing consensus is signaled, and the current ISM gap. Return-field detail is offered as a bonus since the output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds genuinely useful semantics: omit referencePeriod for the latest release, and pass the month the data covers (YYYY-MM) rather than the publication month — a non-obvious distinction the schema alone does not make. The eventType examples also disambiguate 'latest US inflation' to US_CPI and/or US_PCE.

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 (get) and resource (official actuals, consensus, and surprise for a named macro release) and enumerates the five supported event types. It explicitly distinguishes itself from siblings like get_upcoming_risks, get_market_reaction, and get_central_bank_changes, so an agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

Provides an explicit WHEN TO CALL section with eight worked user-phrasing examples mapped to canonical eventType values, plus a WHEN NOT TO CALL section with educational-question examples and named alternatives for adjacent needs. The condition selecting each alternative tool is spelled out, leaving nothing to inference.

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.

Resources