Skip to main content
Glama
GlynnCarson

tradingview-mcp

by GlynnCarson

stock_extended_hours

Read-only

Get real-time pre-market and after-hours stock prices for US symbols. Shows price, time, and percent change from previous close or regular close for each session.

Instructions

Real-time pre-market and after-hours prices for a US stock symbol.

Use this when the user asks about a stock outside the regular 9:30am-4pm ET session — earnings reactions, overnight news, "what is X doing in after-hours?", "how did Y open in pre-market?". Returns the most recent valid print from each session window (pre-market, regular, post-market) along with computed % changes vs. the previous close and the regular close, respectively.

During the regular session, post_market will be null (no data yet). On weekends/holidays, returns whatever's most recent in each window.

Args: symbol: US stock symbol — AAPL, NVDA, TSLA, SPY, ^GSPC, etc.

Returns: - pre_market: {price, as_of_utc, change_vs_previous_close_pct} or null - regular: {price, as_of_utc, change_pct} (consolidated tape close) - post_market: {price, as_of_utc, change_vs_regular_close_pct} or null - previous_close, currency, exchange, market_state for context

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
Behavior5/5

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

Adds substantial behavioral details beyond annotations: explains session-specific behavior (null post_market during regular session), computed % changes, and data freshness. Annotations already declare readOnlyHint=true and destructiveHint=false, but description enriches with operational context.

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

Conciseness5/5

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

Well-structured with purpose first, then usage guidelines, behavior, and arguments/returns. Every sentence adds value without repetition. Efficiently communicates complex information in a compact form.

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?

Compensates fully for the lack of output schema by detailing the return structure (pre_market, regular, post_market objects with fields) and edge cases (nulls, weekends). Complete enough for an agent to understand and use the tool effectively.

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

Parameters5/5

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

Despite 0% schema description coverage, the description provides clear examples (AAPL, NVDA, TSLA, SPY, ^GSPC) and clarifies that indices are supported. This adds significant meaning beyond the schema's basic type definition.

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 explicitly states it provides real-time pre-market and after-hours prices for US stock symbols, using specific verbs like 'returns' and specifying the resource. It distinguishes itself from sibling tools like stock_prices and yahoo_price by focusing on extended hours.

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?

Provides clear scenarios for when to use the tool (earnings reactions, overnight news, after-hours queries) and explains behavior during regular hours and weekends/holidays. However, it does not explicitly state when not to use it or direct users to alternatives like stock_prices for regular hours.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/GlynnCarson/tradingview-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server