Skip to main content
Glama

TradeFlags — HK stocks & US stocks: Breadth, Volatility & Accumulator Pricing

Hmm Regime — State

hmm_regime__state
Read-onlyIdempotent

Hidden-Markov regime of the HK volatility gauge (VHSI): the 4-state regime (bear, trans-bear, trans-bull, bull) with its posterior probabilities and the one-step-ahead expected VHSI log-return and volatility, per trading day. Defaults to the latest day.

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

Input Schema

NameRequiredDescriptionDefault
endNoEnd date (YYYY-MM-DD), inclusive. Default: latest available.
startNoStart date (YYYY-MM-DD), inclusive. Default: earliest available.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4/5.0
Behavior4/5

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

Annotations already mark this read-only, idempotent, open-world and non-destructive, so the safety profile is covered. The description adds real substance beyond that: the output is per trading day, contains regime labels with posterior probabilities, and includes a one-step-ahead forecast of log-return and volatility — more than a bare 'returns regime data' statement would.

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?

Two sentences, front-loaded with the resource and its regime taxonomy, then the returned quantities, then the default scope. The parenthetical state list is informative rather than filler, and nothing is repeated.

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 no output schema, the description carries the burden of explaining return values, and it does so adequately — regime label, posterior probabilities, expected log-return and volatility, at daily granularity. Exact response shape and probability field naming remain unspecified, which is a minor but real gap for a data-returning tool.

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%, with both start and end documented as inclusive YYYY-MM-DD dates and defaults spelled out. The description only echoes the end-date default ('Defaults to the latest day') and adds no format, boundary, or interaction semantics beyond the schema, so baseline 3 applies.

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?

The description names a concrete statistical object — a Hidden-Markov 4-state regime (bear, trans-bear, trans-bull, bull) of the HK VHSI — plus exactly what it returns: posterior probabilities and a one-step-ahead expected log-return and volatility. That specificity of resource naturally separates it from siblings such as crypto_trend__state or vix_vhsi__levels, which operate on different gauges.

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

Usage Guidelines3/5

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

Usage is only implied: it says the tool defaults to the latest day, which tells an agent the no-argument call is the 'current regime' case. There is no explicit when-to-use vs when-not, no mention of when to set a start/end window versus calling as-is, and no named alternative for point-in-time or raw VHSI levels.

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.