Skip to main content
Glama

Intraday Stock Prices

GetIntradayStockPrices
Read-only

Get intraday price bars for ONE stock or ETF, newest first: open, high, low, close, volume and trades, with VWAP on 1-minute bars; use for backtests. GetStockPrices has daily bars, GetLiveQuote the latest price. interval is any whole minutes from 1min (default) to 240min, or 1hour to 4hour, counted from the exchange's midnight. Defaults to the last 7 days (30 for hourly); startDate and endDate set another, back to 2016 where stored. session is regular (default) or extended (04:00 to 20:00 New York). adjustment is split (default) or raw (as traded). A period without trades has no bar. A cut answer names the next endTime. Plus gets a US bar 15 minutes after it ends, Pro as it forms, Free an upgrade note. Outside the US use MIC:TICKER: Euronext (XPAR:AIR) is order-book trades only, added next day; Canada (XTSE:RY, XTSX, XCNQ) ends at 15:59 Toronto, below daily volume; NSE (XNSE:RELIANCE), the exchange's own series; BSE-only companies (XBOM), close and volume only; all added after close.

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": {
      "ticker": "<ticker>"
    },
    "name": "GetIntradayStockPrices"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerYesUS stock or ETF ticker, e.g. AAPL, or MIC:TICKER outside the US, e.g. XPAR:AIR, XTSE:RY, XNSE:RELIANCE
endDateNoLast trading date on the exchange's clock in YYYY-MM-DD format (default: today)
endTimeNoReturn only bars that start before this RFC 3339 time; replaces endDate
sessionNoUS trading hours: regular or extended (default: regular); ignored for a listing outside the USregular
intervalNoBar size: whole minutes from 1min to 240min (e.g. 5min, 7min), or 1hour to 4hour (default: 1min)1min
startDateNoFirst trading date on the exchange's clock in YYYY-MM-DD format (default: 7 days before the end, 30 for hourly intervals)
adjustmentNoPrice basis: split or raw (default: split)split
maxResultsNoMaximum bars to return, newest first (default: 60, max: 500)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / ticker / description
      Previous value: -"US stock or ETF ticker, e.g. AAPL, or MIC:TICKER for a Euronext, Canadian or NSE listing, e.g. XPAR:AIR, XTSE:RY or XNSE:RELIANCE"New value: +"US stock or ETF ticker, e.g. AAPL, or MIC:TICKER outside the US, e.g. XPAR:AIR, XTSE:RY, XNSE:RELIANCE"
  2. Changed1 schema field changed
    • changedInput schema / properties / ticker / description
      Previous value: -"US stock or ETF ticker, e.g. AAPL, or MIC:TICKER for a Euronext or Canadian listing, e.g. XPAR:AIR or XTSE:RY"New value: +"US stock or ETF ticker, e.g. AAPL, or MIC:TICKER for a Euronext, Canadian or NSE listing, e.g. XPAR:AIR, XTSE:RY or XNSE:RELIANCE"
  3. Changed1 schema field changed
    • changedInput schema / properties / interval / description
      Previous value: -"Bar size: 1min, 2min, 3min, 5min, 10min, 15min, 30min, 45min, 1hour, 2hour or 4hour (default: 1min)"New value: +"Bar size: whole minutes from 1min to 240min (e.g. 5min, 7min), or 1hour to 4hour (default: 1min)"
  4. Changed4 schema fields changed
    • changedInput schema / properties / endDate / description
      Previous value: -"Last New York trading date in YYYY-MM-DD format (default: today)"New value: +"Last trading date on the exchange's clock in YYYY-MM-DD format (default: today)"
    • changedInput schema / properties / session / description
      Previous value: -"Trading hours: regular or extended (default: regular)"New value: +"US trading hours: regular or extended (default: regular); ignored for a listing outside the US"
    • changedInput schema / properties / startDate / description
      Previous value: -"First New York trading date in YYYY-MM-DD format (default: 7 days before the end, 30 for hourly intervals)"New value: +"First trading date on the exchange's clock in YYYY-MM-DD format (default: 7 days before the end, 30 for hourly intervals)"
    • changedInput schema / properties / ticker / description
      Previous value: -"US stock or ETF ticker, e.g. AAPL"New value: +"US stock or ETF ticker, e.g. AAPL, or MIC:TICKER for a Euronext or Canadian listing, e.g. XPAR:AIR or XTSE:RY"
  5. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, yet the description still adds substantial context: data latency by tier (Plus 15 minutes after bar close, Pro as it forms, Free an upgrade note), the fact that a period without trades yields no bar, that a truncated answer names the next endTime, and per-exchange quirks for Euronext, Canada, NSE and BSE. The only gap is that maxResults/pagination interaction with truncation is not spelled out.

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?

Front-loaded with purpose and sibling routing, then defaults, then edge cases — a sensible ordering for a tool with this many quirks. The non-US paragraph is a dense run-on that packs four markets into one sentence, which costs some readability but is information-bearing rather than filler.

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?

With 8 parameters, no output schema and no enums, the description carries the full burden and does so: coverage windows, session bounds, adjustment basis, latency by subscription tier, empty-bar behavior, truncation signaling and non-US market caveats are all present. An agent has enough to call this correctly and to interpret an unexpected empty or truncated result.

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 the schema already carries the baseline. The description still adds meaning beyond it: intervals are counted from the exchange's midnight, the default window is 7 days (30 for hourly), extended session runs 04:00–20:00 New York, and data reaches back to 2016 where stored. It does not add anything for maxResults beyond what the schema states.

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 and resource ('Get intraday price bars for ONE stock or ETF') and immediately enumerates the returned fields (OHLC, volume, trades, VWAP on 1-minute). It explicitly distinguishes itself from GetStockPrices (daily bars) and GetLiveQuote (latest price), so an agent can pick the right tool without opening a 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?

Gives a direct use case ('use for backtests') and routes the agent to the two obvious alternatives with their differing behaviors. It also scopes the tool to ONE ticker at a time, implicitly excluding batch use, and explains the outside-US path via MIC:TICKER.

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.