Skip to main content
Glama

market_get_context

Retrieve comprehensive market context—trend, regime, indicators, volume, structure, and zones—in one deterministic call to orient on a ticker or timeframe before planning or analysis.

Instructions

Get comprehensive, multi-dimensional market context (trend, regime, key indicators, volume, market structure, and zones) in a single deterministic call. WHEN TO USE: Call when orienting yourself on a ticker/timeframe before planning actions or answering user analysis queries. LIMITATIONS: Requires price bars loaded on chart. NO SIDE EFFECTS.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expectedTfNoOptional timeframe to verify against chart state
candleCountNoNumber of OHLCV bars to analyze (default 100, max 500)
includeZonesNoWhether to calculate support and resistance zones
expectedSymbolNoOptional symbol to verify against chart state
includeStructureNoWhether to calculate Swings, BOS, CHoCH, and range position
includeIndicatorsNoWhether to calculate RSI, MACD, EMA, ATR, Bollinger, ADX, VWAP, Stochastic

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does meaningful work: 'NO SIDE EFFECTS' declares the read-only safety profile, 'single deterministic call' signals stable repeatable output, and 'Requires price bars loaded on chart' names a precondition that would otherwise cause silent failure. It omits error behavior and does not describe the response payload.

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 purpose sentence followed by labeled WHEN TO USE and LIMITATIONS clauses; every sentence earns its place and an agent can skim the labels for exactly the facts it needs. No filler or restatement of the title.

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

Completeness4/5

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

For a 6-parameter, all-optional read tool with no output schema, the description covers purpose, usage trigger, precondition, and side-effect status. Its one real gap is return-shape detail: the enumerated dimension list hints at contents but does not tell the agent what fields or structure to expect back.

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?

Schema description coverage is 100%, so all six parameters (expectedTf, candleCount, includeZones, expectedSymbol, includeStructure, includeIndicators) are already documented in the schema with defaults and constraints. The description adds no parameter-level detail beyond that, so the baseline 3 applies.

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 (Get) and resource (market context) and enumerates the dimensions returned: trend, regime, key indicators, volume, market structure, zones. This clearly distinguishes it from narrower siblings like market_detect_structure and market_detect_zones, though it never names them explicitly.

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?

The labeled 'WHEN TO USE' clause gives a clear condition: orienting on a ticker/timeframe before planning actions or answering analysis queries. It does not name alternatives (e.g. market_detect_structure for structure only) or state when not to use it, so it stops short of a full routing rule.

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