Skip to main content
Glama

Get Market Sentiment

get_market_sentiment
Read-only

Computed market sentiment: per pair (volatility, momentum, regime, leverage, oi_price, liquidations, order_flow, liquidity, fear_greed) or, without symbol, the whole market (breadth, market_fear_greed, market_phase, risk_appetite = the backdrop outside crypto: US equities, VIX, rates, dollar). Each value: score 0-100, state (frozen vocabulary), meaning (one sentence with its figures), confidence, drivers, state_since_at; detail=full adds components (sub-indicators with their percentile in the pair's own history). data.summary: one deterministic sentence. Values are computed once per CLOSED 1h/4h/1d bucket and never change; since_ms/last = history of the named indicators (any 'over the past week/month' question needs last='7d'/'30d': without it you get only the current value, detail=summary included). Formulas, weights and every state rule: the REST route /v1/sentiment/methodology. One quota request per pair (or for the market); a history: one per pair x indicator.

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": "get_market_sentiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
lastNoHistory over the last '48h' / '30d' (whole buckets).
limitNoHistory rows per series.
detailNosummary: score, state, meaning, confidence, drivers; full: + components.summary
symbolNo1 to 10 pairs; omit for the whole market.
dry_runNoPlans the call without making it: its quota cost, your remaining rate and quota, the checks. No data, no quota.
since_msNoHistory start: epoch ms, ISO date or '48h' ago.
until_msNoHistory end.
timeframeNoBucket step.1h
indicatorsNoIndicators to keep (default all); required names for a history.
max_tokensNoResponse budget, estimated tokens (default 6000).
max_quota_costNoRefuses the call, before any request, if it would use more quota requests than this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond readOnlyHint/destructiveHint, it discloses the crucial trait that values are computed once per CLOSED bucket and never change (so no refetching), spells out quota cost ('one per pair', 'one per pair x indicator' for history), and explains that dry_run/max_quota_cost gate spending before any request. It also points to the methodology route for formulas and state rules.

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?

Front-loaded with the two scopes, then the return shape, then the critical history/quota caveats. Dense and mostly justified, though the single-paragraph run-on with parenthetical lists could be split for faster scanning.

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

Completeness5/5

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

For an 11-parameter tool with no output schema, the description fully covers the return shape (score, state, meaning, confidence, drivers, state_since_at, components, data.summary), determinism, history semantics, and quota economics. An agent has everything needed to call it correctly.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3, but the description adds real semantics: last/since_ms produce history rather than current value, indicators is required for a history, detail=full adds percentile components, and quota cost scales per pair x indicator. It does not explain max_tokens or timeframe trade-offs.

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 names a specific resource (computed market sentiment) and enumerates its two scopes precisely: per pair with the nine named indicators, or the whole market with breadth/fear_greed/phase/risk_appetite. It does not name any sibling tool (e.g. get_market_overview, get_market_indicators) or say how this differs from them, which keeps it out of 5 territory.

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?

Clear conditional guidance is embedded: omit symbol for whole-market, use detail=full only when components are needed, and explicitly 'any over the past week/month question needs last=7d/30d: without it you get only the current value'. What is missing is guidance versus the sibling tools that presumably also return market context.

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