Skip to main content
Glama

market_depth

Access live Level 2 order book data for NSE stocks, showing top 5 bid and ask prices with quantities. Requires Angel One API credentials.

Instructions

Level 2 order book depth — top 5 bid/ask prices and quantities.

This is exchange-licensed real-time data. Zerodha Kite Connect charges ₹500/month for this. Angel One SmartAPI provides it free to account holders.

Requires Angel One API credentials in .env (stays local, never on GitHub).

Provides (when configured):

  • Top 5 buy orders (bid price + quantity)

  • Top 5 sell orders (ask price + quantity)

  • Total buy and sell queue size

Args: symbol: NSE symbol (e.g., RELIANCE, TCS, HDFCBANK)

Examples: market_depth("RELIANCE") → Live order book for Reliance

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Discloses that it returns top 5 bid/ask prices and quantities, total queue size, and is real-time. No annotations exist, so description carries the burden; it covers essential traits without mentioning failure modes.

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?

Front-loaded with key purpose, then context, then parameter explanation, and example. Every sentence adds value; structure is logical and efficient.

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 no output schema visible, the description explains the output structure (top 5 buy/sell orders, total queue size). Covers setup, source, and parameter. Output schema exists for further detail, making this complete.

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 has 0% description coverage, but the description details the single parameter 'symbol' with examples and format (NSE symbol). Adds significant meaning beyond the schema's bare 'Symbol' title.

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 'Level 2 order book depth — top 5 bid/ask prices and quantities', specifying the verb and resource. It distinguishes from sibling tools like live_quote by emphasizing Level 2 depth.

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 context on source (exchange-licensed), cost (Zerodha/Angel One), and setup (API credentials). It does not explicitly list when not to use or alternatives, but the detail is sufficient for typical use.

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/finstacklabs/finstack-mcp'

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