Skip to main content
Glama
nikhilkatyan

OptionContext

get_batch_market_context

Fetch live quote details, LTP, volume, and market context for a batch of stocks, indices, or futures, with optional expiry.

Instructions

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expiryNoSPOT
api_keyNo
symbolsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It adds useful behavioral context: it mentions 'live' data, optional api_key with environment fallback, and the default expiry. However, it does not disclose rate limits, error handling, or side effects. This is a moderate level of disclosure, but not comprehensive.

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: a single purpose sentence followed by a well-structured Args list. Every sentence contributes necessary information, and the structure is clean and front-loaded with the primary purpose. No redundant text.

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?

Given that an output schema exists, the description does not need to explain return values. It covers the core invocation details: what the tool does, all parameters with defaults, and authentication behavior. However, it does not mention limits on batch size or explicitly clarify the distinction from sibling tools, which leaves small but meaningful gaps.

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?

Schema description coverage is 0%, so the description is the only source of parameter meaning. It thoroughly documents each parameter: symbols with an example, expiry with allowed values and default, and api_key with optionality and environment fallback. This adds significant value beyond the bare schema.

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's function: 'Fetch live quote details, last traded price (LTP), volume, and context for a batch of Stocks, Indices, or Futures.' It uses a specific verb ('Fetch') and a resource ('batch market context') and explicitly differentiates from the sibling tool get_market_context by emphasizing 'batch'.

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?

The description implies use for multiple symbols through the word 'batch', which distinguishes it from the singular get_market_context. It also provides default values and environment variable fallback for the API key. However, it does not explicitly state when to use this tool versus alternatives or mention any exclusions, so it lacks explicit guidance.

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