Skip to main content
Glama

get_market_context

Read-only

Get multi-timeframe market analysis (5m, 15m, 1h, 4h, 1D). Returns trend, structure, momentum, volatility, and market_data_source metadata.

Input Schema

NameRequiredDescriptionDefault
symbolYesTrading symbol
account_idNoOptional connected account id when user has brokers linked
timeframesNoTimeframes to analyze (default: 5m, 15m, 1h, 4h, 1D)
include_eventsNoInclude nearby economic events

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds useful behavior context by naming the returned dimensions (trend, structure, momentum, volatility) and the market_data_source metadata, which tells the agent this is a composite analysis rather than raw quotes. It does not mention cost, latency, or whether results are cached or live, so it stops short of rich disclosure.

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 tight sentences; the analysis scope is front-loaded and the return contents follow. No filler or marketing language. Slightly denser payoff could be achieved by trading the redundant timeframe enumeration for a pointer to the sibling that handles single-snapshot lookups.

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?

With annotations covering safety and a fully documented schema, the description's job is to convey scope and return shape, and it does both by listing the analysis dimensions. No output schema exists, yet the description enumerates the return fields, which compensates well. The remaining gap is the absence of any guidance on how this differs in cost or purpose from get_market_snapshot for the same symbol.

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% and each of the four parameters is documented in the schema, including the default timeframe list, so the schema carries the burden. The description only repeats the timeframe set rather than adding syntax or validity rules (e.g. whether unsupported timeframe strings error or are ignored). Baseline 3.

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: 'Get multi-timeframe market analysis' with the exact timeframes enumerated (5m, 15m, 1h, 4h, 1D) and names the analysis dimensions returned. That clearly separates it from get_market_news or get_economic_calendar_week, but it never distinguishes it from the closest sibling, get_market_snapshot, so an agent must infer the boundary.

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 guidance and no exclusion of alternatives. With siblings like get_market_snapshot, get_historical_context, and compare_markets all plausibly answering 'what is the market doing', the description leaves the routing decision entirely to inference. The only contextual hint is the schema note about account_id when brokers are linked.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources