Skip to main content
Glama

PlainQuant

What the market did after an event

event_study
Read-onlyIdempotent

For each past occurrence of the event, the move of the market (market: US = the S&P 500 via SPY, the default for US events; HK = the Hang Seng Index, from its first close after the news; 'measured' in the answer names it) 2 weeks, 4 weeks and 3 months later (fractions: 0.037 = +3.7%), plus median, share up, worst and best beside any window of the same length. With too few occurrences only the list is given. Give symbol (a ticker or company name of the measured market) to measure that one stock's own price, dividends included, instead of the market (QQQ for the Nasdaq-100). Use for questions like 'what happens to stocks after a midterm election / an FOMC meeting', 'what did AAPL do after CPI' or 'what did Hong Kong do after the Fed'.

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": {
      "event_id": "<event_id>"
    },
    "name": "event_study"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketNo
symbolNo
event_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / symbol / maxLength
      Previous value: -300New value: +450
  2. Changed1 schema field changed
    • changedInput schema / properties / event_id / enum
      Previous value: -[
      -  "global_war_start",
      -  "systemic_bank_failure",
      -  "us_cpi_release",
      -  "us_fed_rate_cut",
      -  "us_fed_rate_hike",
      -  "us_fomc_decision",
      -  "us_government_shutdown",
      -  "us_jobs_report",
      -  "us_market_down_day_3",
      -  "us_market_drop_10",
      -  "us_market_drop_20",
      -  "us_market_drop_5",
      -  "us_midterm_election",
      -  "us_presidential_election",
      -  "us_quad_witching",
      -  "us_sovereign_downgrade",
      -  "us_tariff_escalation",
      -  "who_health_emergency"
      -]New value: +[
      +  "global_war_start",
      +  "hk_market_drop_10",
      +  "hk_market_drop_20",
      +  "systemic_bank_failure",
      +  "us_cpi_release",
      +  "us_fed_rate_cut",
      +  "us_fed_rate_hike",
      +  "us_fomc_decision",
      +  "us_government_shutdown",
      +  "us_jobs_report",
      +  "us_market_down_day_3",
      +  "us_market_drop_10",
      +  "us_market_drop_20",
      +  "us_market_drop_5",
      +  "us_midterm_election",
      +  "us_presidential_election",
      +  "us_quad_witching",
      +  "us_sovereign_downgrade",
      +  "us_tariff_escalation",
      +  "who_health_emergency"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / event_id / enum
      Previous value: -[
      -  "global_war_start",
      -  "systemic_bank_failure",
      -  "us_cpi_release",
      -  "us_fomc_decision",
      -  "us_government_shutdown",
      -  "us_jobs_report",
      -  "us_market_down_day_3",
      -  "us_market_drop_10",
      -  "us_market_drop_20",
      -  "us_midterm_election",
      -  "us_presidential_election",
      -  "us_quad_witching",
      -  "us_sovereign_downgrade",
      -  "us_tariff_escalation",
      -  "who_health_emergency"
      -]New value: +[
      +  "global_war_start",
      +  "systemic_bank_failure",
      +  "us_cpi_release",
      +  "us_fed_rate_cut",
      +  "us_fed_rate_hike",
      +  "us_fomc_decision",
      +  "us_government_shutdown",
      +  "us_jobs_report",
      +  "us_market_down_day_3",
      +  "us_market_drop_10",
      +  "us_market_drop_20",
      +  "us_market_drop_5",
      +  "us_midterm_election",
      +  "us_presidential_election",
      +  "us_quad_witching",
      +  "us_sovereign_downgrade",
      +  "us_tariff_escalation",
      +  "who_health_emergency"
      +]
  4. Changed2 schema fields changed
    • changedInput schema / properties / event_id / enum
      Previous value: -[
      -  "us_cpi_release",
      -  "us_fomc_decision",
      -  "us_jobs_report",
      -  "us_market_down_day_3",
      -  "us_market_drop_10",
      -  "us_market_drop_20",
      -  "us_midterm_election",
      -  "us_presidential_election",
      -  "us_quad_witching"
      -]New value: +[
      +  "global_war_start",
      +  "systemic_bank_failure",
      +  "us_cpi_release",
      +  "us_fomc_decision",
      +  "us_government_shutdown",
      +  "us_jobs_report",
      +  "us_market_down_day_3",
      +  "us_market_drop_10",
      +  "us_market_drop_20",
      +  "us_midterm_election",
      +  "us_presidential_election",
      +  "us_quad_witching",
      +  "us_sovereign_downgrade",
      +  "us_tariff_escalation",
      +  "who_health_emergency"
      +]
    • addedInput schema / properties / market
      Added value: +{
      +  "enum": [
      +    "US",
      +    "HK"
      +  ],
      +  "type": "string"
      +}
  5. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description is free to add real behavioral detail: how the market is measured for US versus HK, that measurement starts from the first close after the news, that dividends are included for a named symbol, that returns are fractional (0.037 = +3.7%), and the important edge case that too few occurrences yields only the list. The only missing pieces are how far back history is searched and whether the response is paginated.

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

Conciseness3/5

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

The core definition is delivered up front and every clause carries information, but the first sentence is a long parenthetical-heavy construction that takes effort to parse. Multi-line structural separation of the output, the symbol option and the examples would make it substantially easier to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description usefully sketches the return shape (per-window moves, median, share up, worst and best for same-length windows, and the truncated-list case) and covers all three parameters. Remaining ambiguity is modest: the historical window depth and the interaction between market and symbol.

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 description coverage is 0%, so the description must carry the load, and it does: it explains what market=US and market=HK resolve to, that symbol takes a ticker or company name of the measured market (with QQQ cited as the Nasdaq-100 example), and that event_id selects which past occurrences are studied. The event_id enum values themselves are only in the schema, and the description does not say whether symbol overrides market or how they interact.

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

Purpose4/5

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

The description states a specific verb and resource: for each past occurrence of an event, it reports the market's move at 2-week, 4-week and 3-month windows plus median/share-up/worst/best statistics. It also clarifies that this can be narrowed to a single stock's own price. It does not explicitly distinguish itself from the sibling index_move_study, which keeps it short of a 5.

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?

It gives concrete trigger examples ('what happens to stocks after a midterm election / an FOMC meeting', 'what did AAPL do after CPI'), which makes the intended question type unambiguous. It stops short of naming when not to use it or pointing to an alternative sibling such as index_move_study or rule_estimates.

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