Skip to main content
Glama

market_depth_stream_unsubscribe

Cancels an active market depth stream by subscription ID, stopping depth updates for that subscription and releasing the associated streaming resource.

Instructions

Unsubscribe from market depth stream.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "subscription_id": "<subscription_id>"
    },
    "name": "market_depth_stream_unsubscribe"
  }
}

Input Schema

NameRequiredDescriptionDefault
subscription_idYesSubscription ID from subscribe call

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about whether the stream stops immediately, whether the operation is idempotent, what happens with an invalid or already-cancelled subscription_id, or whether any confirmation is returned. For a state-changing cancellation tool this is a notable gap.

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?

A single front-loaded sentence with no filler. It is efficient, though the terseness borders on under-specification for a cancellation operation.

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?

The tool is simple, has one fully documented parameter, and no output schema, so little is strictly required. Still, the absence of any statement about the effect of unsubscribing or error conditions leaves the picture incomplete for an agent deciding how to handle the result.

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

Parameters3/5

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

There is a single parameter with 100% schema description coverage ("Subscription ID from subscribe call"), so the schema already explains it. The description adds no extra meaning such as format, provenance, or reuse constraints, making the baseline 3 appropriate.

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?

"Unsubscribe from market depth stream" gives a specific verb (unsubscribe) and a specific resource (market depth stream), which separates it from siblings like order_status_stream_unsubscribe or realtime_bars_stream_unsubscribe. It does not explicitly name an alternative or state scope boundaries, so it stops short of a 5.

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?

The description gives no guidance on when to call this versus the other unsubscribe tools, no mention of whether the subscription must be active, and no pointer to list_market_data_subscriptions for retrieving a subscription_id. Usage is only implied by the name.

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