Skip to main content
Glama

Historical context for any recorded metric (conditional distribution)

get_metric_context
Read-only

Checks whether a metric's current reading is high or low by bucketing it against its daily history, then returns median forward BTC returns and up-share at +1/+3/+7 days versus the base rate.

Instructions

Call this when the user asks whether a metric's current reading is high or low, or what happened after similar readings. Buckets today's value against the metric's own recorded daily history and returns the median forward BTC return and up-share per bucket at +1/+3/+7 days, with the all-days base rate alongside. Honesty rules: buckets under 30 days are suppressed, and most metrics do NOT separate from the base rate; the interpretation says so plainly. History, not a forecast. Metrics include coinbase_premium_pct, kraken_btc_premium_pct, dvol_btc, fear_greed, funding_btc_daily_pct, etf_btc_net_flow_usd, vpin_btc, altseason_index, stablecoin_total_mcap_busd, fred_dff, fred_dgs10, fred_walcl_busd, fred_rrp_busd and the btc_* network series.

Input Schema

NameRequiredDescriptionDefault
metricYesMetric key, e.g. coinbase_premium_pct, fear_greed, altseason_index, stablecoin_total_mcap_busd.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Addedv0.9.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already mark it read-only and open-world, and the description adds substantive behavioral detail: buckets under 30 days are suppressed, most metrics do not separate from the base rate, and the interpretation says so plainly. That is exactly the kind of caveat an agent needs before reporting a result to a user.

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 trigger, then the mechanics, then the honesty rules — a sensible order with no filler sentences. The trailing metric enumeration is long but functional, listing the namespace rather than restating the schema.

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 a single-parameter read tool with no output schema, the description carries the full burden and does so: it describes the returned fields (median forward BTC return, up-share at +1/+3/+7 days, all-days base rate), the suppression threshold, and the interpretation caveat. Nothing needed to call or interpret it is missing.

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 100% with a pattern constraint and four example keys, so the baseline is 3. The description adds real value by enumerating the full accepted metric namespace (dvol_btc, vpin_btc, fred_* series, btc_* network series), which the schema only hints at.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — bucketing a metric's current value against its own daily history and returning forward-return statistics per bucket. Distinguishes itself from sibling lookups like get_series or get_market_profile by framing the output as conditional distribution vs. base rate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Opens with an explicit trigger condition: call it when the user asks if a reading is high/low or what happened after similar readings. It also sets an explicit boundary with 'History, not a forecast,' telling the agent what this tool is not for.

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