Skip to main content
Glama
Agent Trading Desk

Agent Trading Desk

get_market_microstructure

Detect institutional accumulation, order-book spoofing, and liquidity traps by querying order-flow analytics such as entropy, VPIN, Level-2 imbalance, and CVD divergence for a symbol.

Instructions

Query deep order flow microstructure analytics: Shannon Entropy (H <= 0.88 indicating institutional accumulation), Volume-Synchronized Probability of Toxicity (VPIN), Level-2 order book depth ratio (±1% to ±2% bid/ask imbalance), resting spoof wall detection, and Cumulative Volume Delta (CVD) slope divergence for institutional trap detection.

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": {
      "symbol": "<symbol>"
    },
    "name": "get_market_microstructure"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesThe asset pair symbol (e.g. "SOL/USD", "BTC/USD", "SUI/USD")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 and largely does not meet it. It reveals interpretation thresholds (entropy H <= 0.88 for accumulation) but says nothing about whether the data is a live snapshot or historical, the observation window, computation latency, cost, rate limits, or failure modes for an unsupported symbol. Only the output semantics are disclosed, not the operational behavior.

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?

It is a single front-loaded sentence that leads with the action and resource before the metric list, with no filler sentences. It is dense with domain jargon and multiple parenthetical definitions, but every clause maps to an actual returned metric, so the density is arguably earned.

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?

Given one simple parameter and no output schema, the description does helpfully enumerate what comes back, which partially substitutes for the missing output schema. However, with zero annotations it should have covered data freshness, the observation window, and error behavior for a single-symbol analytics query, and it does not.

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 required parameter with 100% schema description coverage, so the schema already fully defines 'symbol' with examples. The description adds no further meaning about the parameter, which is acceptable at baseline but leaves no added value.

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 opens with a specific verb and resource ('Query deep order flow microstructure analytics') and then enumerates the exact metrics returned (entropy, VPIN, depth ratio, spoof walls, CVD slope). An agent knows precisely what data this retrieves. It loses a point because it never contrasts itself with plausible siblings like get_market_regime or evaluate_trap_shield, which overlap conceptually with 'institutional trap detection'.

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 statement of when to call this tool, when not to, or which sibling to prefer for overlapping questions (e.g. regime vs. microstructure vs. trap shield). The only usage signal is implicit in the metric names, which the agent must interpret on its own.

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