Skip to main content
Glama

Market data: pre/post-market prices

stock_extended_hours

Fetch pre-market, regular, post-market, and overnight prices with per-session comparisons and provider-labeled readings for any ticker.

Instructions

Pre-/post-market and overnight prices, with per-session comparisons.

Finviz exposes the after-hours print on the quote page; Yahoo derives pre/regular/post prices from its own 1-minute candles; TradingView's scanner carries its own pre/post prints; StockAnalysis returns an extended-hours block next to the regular quote. Only like pre/post sessions with usable print times are compared, and every raw reading and session block is returned.

Args: symbol: Ticker.

Returns: Envelope with data carrying pre_market, regular, post_market, the Finviz after-hours block, and reconciled overnight readings from TradingView's BOATS socket and Yahoo's quote header.

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": {
      "symbol": "<symbol>"
    },
    "name": "stock_extended_hours"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does so reasonably: it discloses that four providers are merged, that only comparable pre/post sessions with usable print times are reconciled, and that every raw reading plus session blocks is returned. It omits failure modes (what happens when a provider has no extended-hours block) and any auth or latency expectations, which keeps 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.

Conciseness3/5

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

The first line is well front-loaded, but the provider-by-provider enumeration of Finviz, Yahoo, TradingView and StockAnalysis is wordy for the value it adds. The Args/Returns block largely restates the schema and output schema.

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?

An output schema exists, so the Returns section is partly redundant, but naming the data keys (pre_market, regular, post_market, Finviz after-hours, reconciled overnight) tells the agent what to expect from a multi-source merge. For a one-parameter read tool this is close to complete; only the no-data edge case is unaddressed.

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?

One required parameter at 0% schema description coverage, documented only as 'Ticker.' The description compensates minimally; it does not say whether an exchange suffix or symbol format is needed. Adequate but not enriching.

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 opening line names a specific resource and scope: pre-/post-market and overnight prices with per-session comparisons. That distinguishes it from a plain quote tool like stock_quote, though it never names a sibling explicitly. Purpose is clear without opening the schema.

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

Usage Guidelines3/5

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

Usage is only implied: if you need extended-hours prices, use this. There is no statement of when to prefer stock_quote or stock_price_history, nor any prerequisite or exclusion. The agent must infer the routing decision from the tool name and first sentence.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.