Skip to main content
Glama

market_depth_stream_subscribe

Subscribes to Level 2 market depth updates for a specified contract, enabling streaming order-book data for real-time market analysis.

Instructions

Subscribe to streaming market depth (Level 2) updates.

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_stream_subscribe"
  }
}

Input Schema

NameRequiredDescriptionDefault
conIdNo
symbolNo
numRowsNo
secTypeNo
currencyNo
exchangeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. 'Streaming' hints that updates arrive asynchronously, but the description says nothing about subscription lifecycle, whether subscribing twice for the same contract duplicates or replaces the stream, resource consumption, or rate limits — all critical for a stateful subscription.

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

Conciseness3/5

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

One short sentence, front-loaded with the verb and resource, with no filler. Its brevity is under-specification rather than true efficiency, so it cannot score higher.

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

Completeness1/5

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

A six-parameter, stateful streaming subscription tool with zero annotation coverage, zero parameter documentation, and no output schema is described in a single nine-word sentence. Nothing an agent needs to invoke it correctly — which identifiers are required, how to size the stream, how to stop it — is present.

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

Parameters1/5

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

Schema description coverage is 0% across six parameters, so the description must compensate and instead adds nothing. It never explains conId vs symbol, what numRows controls (depth levels), or what secType, currency, and exchange are needed for.

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?

States a specific verb and resource: 'Subscribe to streaming market depth (Level 2) updates.' The '(Level 2)' qualifier meaningfully separates it from a generic market data stream subscription. It does not, however, explicitly contrast itself with the sibling market_data_stream_subscribe or the paired unsubscribe tool.

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?

No guidance on when to choose this over market_data_stream_subscribe, tick_by_tick_stream_subscribe, or market_depth_snapshot. Nothing mentions the requirement to later call market_depth_stream_unsubscribe, nor whether conId or symbol should be supplied, leaving the agent to infer call conditions from the schema alone.

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