Skip to main content
Glama
nikhilkatyan

OptionContext

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FASTAPI_BASE_URLNoAlternative base URL used in local or custom API gateway environments. If OPTIONCONTEXT_BASE_URL is omitted, this will be used as fallback.
OPTIONCONTEXT_API_KEYYesYour Agent-as-a-Service API key.
OPTIONCONTEXT_BASE_URLNoThe OptionContext endpoint gateway URL (defaults to https://mcp.optioncontext.com if omitted).https://mcp.optioncontext.com

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_agent_infoA

Fetch information about the current Agent API key, including plan type, active status, remaining credits, and symbol access limits. Args: api_key (str, optional): Override API Key. If omitted, uses environment key.

suggest_symbolsA

Search and resolve correct ticker symbols (e.g. searching 'Reliance' to get 'RELIANCE'). Args: query (str): The search text or company name.

get_market_contextA

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.

get_option_chainA

Fetch complete option chain matrix including PCR, ATM strike, CE/PE quotes, volume, and Greeks. Args: symbol (str): Underlying index or stock ticker (e.g. 'NIFTY', 'BANKNIFTY'). api_key (str, optional): API Key. If omitted, uses OPTIONCONTEXT_API_KEY from environment.

get_historical_dataA

Fetch historical daily/intraday OHLCV candles (Requires Plan B subscription). Args: symbol (str): Ticker symbol. from_date (str): YYYY-MM-DD. to_date (str): YYYY-MM-DD. interval (str): Candle interval ('ONE_MINUTE', 'FIVE_MINUTE', 'FIFTEEN_MINUTE', 'ONE_DAY'). Default is 'ONE_DAY'. api_key (str, optional): API Key.

get_batch_market_contextA

Fetch live quote details, last traded price (LTP), volume, and context for a batch of Stocks, Indices, or Futures. Args: symbols (list[str]): Ticker symbols (e.g. ['NIFTY', 'RELIANCE']). expiry (str): Expiry cycle ('SPOT', 'NEAR', 'FAR', 'NEXT'). Default is 'SPOT'. api_key (str, optional): API Key. If omitted, uses OPTIONCONTEXT_API_KEY from environment.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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