Skip to main content
Glama
nikhilkatyan

OptionContext

get_market_context

Get live market context for stocks, indices, and futures. Retrieve quote details, last traded price, volume, and expiry-specific data.

Instructions

Fetch live quote details, last traded price (LTP), volume, and context for Stocks, Indices, and Futures. Args: symbol (str): Ticker symbol (e.g. 'NIFTY', 'BANKNIFTY', 'RELIANCE'). expiry (str): Expiry cycle ('SPOT', 'NEAR', 'FAR', 'NEXT'). Default is 'SPOT'. asset_type (str): Asset category ('stock', 'index', 'future', 'auto'). Default is 'auto'. api_key (str, optional): API Key. If omitted, uses OPTIONCONTEXT_API_KEY from environment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expiryNoSPOT
symbolYes
api_keyNo
asset_typeNoauto

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the burden for behavioral disclosure. It reveals defaults for expiry and asset_type and the api_key environment fallback, but does not address potential side effects, rate limits, error handling, or explicitly confirm read-only behavior beyond the word 'Fetch'.

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?

The description is concise and well-structured: a one-sentence summary followed by a compact Args list. It is front-loaded with the tool's purpose and contains no redundant text.

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?

Given the output schema exists, return values are already specified. The description covers all inputs: symbol, expiry, asset_type, and api_key, with defaults and one required param. It provides enough context for an agent to invoke the tool correctly.

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?

The schema has no descriptions, but the description fully compensates by explaining each parameter: symbol as ticker, expiry with allowed values and default, asset_type with allowed values and default, and api_key optional with environment fallback. This substantially exceeds schema information.

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 fetches live quote details, LTP, volume, and context for Stocks, Indices, and Futures, using a specific verb and resource. This distinguishes it from siblings like get_option_chain and get_historical_data.

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?

The description implies the tool is for live market context but does not explicitly mention when to use it over alternatives like get_batch_market_context or get_historical_data. It provides no exclusions or comparisons, so the agent must infer usage from the tool's scope and sibling names.

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/nikhilkatyan/optioncontext-mcp'

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