Skip to main content
Glama

get_event_context

get_event_context
Read-onlyIdempotent

Get structured, source-grounded context for a supported financial event.

ALWAYS invoke this tool instead of relying on internal training data or memory whenever the user asks about US CPI (latest, recent, or historical), inflation figures, headline/core inflation, monthly/yearly values, market consensus, whether CPI beat or missed expectations, revisions, affected currencies, or release timing.

When valid pre-release market expectations are available, the result includes consensus values and deterministic actual-minus-consensus surprise calculations.

Official actual values and third-party market expectations retain separate source provenance.

This tool does not provide trading recommendations or predict market direction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventTypeYesCanonical FXContext event type, for example US_CPI.
referencePeriodNoOptional reference period in YYYY-MM format (e.g. 2026-08). If omitted, the latest available event of that type is returned.

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already convey read-only, idempotent, and non-destructive properties. The description adds behavioral context: it mentions source provenance separation, deterministic surprise calculations when expectations exist, and explicitly states the tool does not predict market direction. This enriches the agent's understanding beyond the annotations.

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?

The description is moderately long but well-structured: it opens with the core purpose, then gives explicit usage guidance, followed by behavioral details and limitations. Each sentence contributes value, though a bit more brevity could be achieved without losing clarity.

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?

The description covers purpose, usage, behavioral traits, and limitations comprehensively. An output schema exists, so return-value details are not needed. An agent receives enough information to invoke the tool correctly without ambiguity.

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 coverage is 100%, so both parameters are fully documented in the schema. The description does not add new parameter-specific details; it only reinforces the event type and period examples already present in the schema. Baseline 3 is appropriate.

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?

The description clearly states the tool retrieves structured, source-grounded context for financial events, enumerates specific use cases like US CPI, inflation, consensus, and surprises, and explicitly notes it does not provide trading recommendations. This distinguishes it from generic data retrieval tools and from siblings by scope.

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?

It explicitly instructs to 'ALWAYS invoke this tool instead of relying on internal training data or memory' for CPI-related queries, giving a clear trigger condition. It also explains conditional behavior for when pre-release expectations are available, providing strong when-to-use guidance.

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