Skip to main content
Glama

market_depth_snapshot

Retrieve a Level 2 order book snapshot for a contract to view current market depth rows by symbol or conId.

Instructions

Get an order book snapshot (Level 2 data). Returns the current market depth rows.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "market_depth_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
conIdNo
symbolNo
numRowsNoNumber of depth rows (default: 5)
secTypeNo
currencyNo
exchangeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses only that the result is a set of current depth rows; it does not say whether this is read-only, whether it requires an L2 market data subscription, whether data is delayed, or what happens when no contract-identifying parameters are supplied (all six parameters are optional).

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

Conciseness4/5

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

Two short sentences, front-loaded with the verb and the data type. There is no wasted wording, though the brevity reflects under-specification rather than disciplined economy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read tool with no output schema, the description covers the essential 'what' adequately, and the return shape is briefly characterized as depth rows. However, with six optional parameters and no annotations, the definition leaves contract-identification and invocation requirements unexplained.

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

Parameters2/5

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

Schema description coverage is only 17% — just numRows is documented — yet the description adds no parameter meaning at all. It does not explain how conId, symbol, secType, currency, and exchange combine to identify the contract, nor that numRows controls the depth rows returned, so the bulk of the schema remains opaque.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Get an order book snapshot (Level 2 data)' and 'current market depth rows'. It is clear what the tool fetches, but it never distinguishes this one-shot snapshot from the sibling streaming tools (market_depth_stream_subscribe) or other snapshot variants (market_data_snapshot, market_data_bulk_snapshot).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, and no prerequisites such as the market data subscription typically required for Level 2 depth. The word 'snapshot' hints at a one-shot read versus a stream, but with several market-data siblings present the agent is left to infer the routing entirely.

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

Deploy Server

Other Tools