Skip to main content
Glama

OneQAZ Trading Intelligence

Structure Calibration (Level 2)

get_structure_calibration
Read-onlyIdempotent

Call this to see how well sector / ETF-basket direction calls held up against a majority-class baseline; include_history=True adds the day-by-day validation trend. Purpose: Level 2 (ETF / basket / sector granularity — Level 1 is individual symbols) prediction calibration. Returns hit_rate_ema per (market, group, interval, regime_bucket) with sample counts, plus the majority-class baseline needed to interpret them. This is measurement, NOT a claim of edge — as of 2026-09-18 the measured skill (accuracy minus baseline) is negative in all three markets. Triggers (casual questions too): "how good are your sector calls?", "섹터 예측 잘 맞아?", "sector rotation accuracy?", "그룹 단위 적중률 보여줘", "sector accuracy over time?", "요즘 섹터 예측 성적 어때?". When to call: when an AI wants to see Layer D evidence (Layer D = sector-structure tier of the 5-layer trust pyramid). Prerequisites: none. Next steps: include_history=True for the daily trend. Caveats: empty until structure-learning cycles complete. Rows are paginated — read total_available (not len(calibration)) for the whole-set size. baseline, meta.total_entries and meta.total_samples are always whole-set. Rows keep their dimension keys (market_id / interval / regime_bucket); they are never hoisted out of the row. Output nature: Past calls and their realized outcomes, judged after the fact, with sample sizes and baselines. Past hit rates describe the past, not future outcomes.

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_structure_calibration"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoinclude_history: lookback window in days (default 90)
limitNoMax results (default 50, max 500). Rows are truncated; see `total_available` and `truncated` in the response. `baseline` and `meta` counts stay whole-set.
market_idNoOptional market filter (crypto, kr_stock, us_stock). Aliases coin/kr/us and any letter case are accepted.
group_nameNoOptional group/sector filter (e.g., layer1, defi, sector, broad_index)
include_historyNoAlso return the daily validation history (hit_rate per day, overall_hit_rate) as `history`. Default false.

Output Schema

NameRequiredDescriptionDefault
full_dataNo
timestampYesRFC3339 UTC, server build time
disclaimerYesCanonical compliance disclaimer (always present)
request_idYes32-hex per-response correlation id
is_real_moneyNo
data_classificationNo
is_investment_adviceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / days
      Added value: +{
      +  "default": 90,
      +  "description": "include_history: lookback window in days (default 90)",
      +  "type": "integer"
      +}
    • addedInput schema / properties / include_history
      Added value: +{
      +  "default": false,
      +  "description": "Also return the daily validation history (hit_rate per day, overall_hit_rate) as `history`. Default false.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed2 schema fields changed
    • addedOutput schema / properties
      Added value: +{
      +  "data_classification": {
      +    "anyOf": [
      +      {
      +        "const": "research_information_only",
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null
      +  },
      +  "disclaimer": {
      +    "description": "Canonical compliance disclaimer (always present)",
      +    "type": "string"
      +  },
      +  "full_data": {
      +    "anyOf": [
      +      {
      +        "additionalProperties": true,
      +        "description": "`full_data` for get_structure_calibration — 실응답에서 추출(2026-09-23).",
      +        "properties": {
      +          "baseline": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "calibration": {
      +            "items": {},
      +            "type": "array"
      +          },
      +          "limit": {
      +            "anyOf": [
      +              {
      +                "type": "integer"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "default": null
      +          },
      +          "meta": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "returned": {
      +            "anyOf": [
      +              {
      +                "type": "integer"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "default": null
      +          },
      +          "total_available": {
      +            "anyOf": [
      +              {
      +                "type": "integer"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "default": null
      +          },
      +          "truncated": {
      +            "anyOf": [
      +              {
      +                "type": "boolean"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "default": null
      +          },
      +          "truncated_note": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "default": null
      +          }
      +        },
      +        "type": "object"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null
      +  },
      +  "is_investment_advice": {
      +    "anyOf": [
      +      {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null
      +  },
      +  "is_real_money": {
      +    "anyOf": [
      +      {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null
      +  },
      +  "request_id": {
      +    "description": "32-hex per-response correlation id",
      +    "type": "string"
      +  },
      +  "timestamp": {
      +    "description": "RFC3339 UTC, server build time",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "disclaimer",
      +  "request_id",
      +  "timestamp"
      +]
  4. Changed7 schema fields changed
    • addedInput schema / properties / group_name / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / group_name / description
      Added value: +"Optional group/sector filter (e.g., layer1, defi, sector, broad_index)"
    • removedInput schema / properties / group_name / type
      Removed value: -"string"
    • addedInput schema / properties / market_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / market_id / description
      Added value: +"Optional market filter (crypto, kr_stock, us_stock). Aliases coin/kr/us and any letter case are accepted."
    • addedInput schema / properties / market_id / enum
      Added value: +[
      +  "crypto",
      +  "kr_stock",
      +  "us_stock"
      +]
    • removedInput schema / properties / market_id / type
      Removed value: -"string"
  5. Changed1 schema field changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 50,
      +  "description": "Max results (default 50, max 500). Rows are truncated; see `total_available` and `truncated` in the response. `baseline` and `meta` counts stay whole-set.",
      +  "type": "integer"
      +}
  6. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already establish a safe, idempotent, closed read, and the description still adds substantial behavior: rows are paginated so total_available rather than len(calibration) is the set size, while baseline and meta counts stay whole-set; results are empty until structure-learning cycles complete; and measured skill is currently negative in all three markets. The 'this is measurement, NOT a claim of edge' and 'past hit rates describe the past, not future outcomes' warnings are exactly the framing an agent needs before quoting these numbers.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core statement is front-loaded in the first clause, but the block is bloated: include_history is introduced in the opening line, again under 'Next steps', and a third time in the caveats, and the bilingual trigger list consumes several lines. Labelled sections (Purpose/Triggers/When to call/Prerequisites/Next steps/Caveats) keep it navigable, but a third of the text is redundant.

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?

An output schema exists, yet the definition still covers what matters for correct use: the empty-before-cycles state, the pagination interpretation pitfall, the whole-set versus truncated distinction, and the interpretive caveat about baseline. Nothing an agent needs in order to call this and read the result honestly is missing.

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 the baseline is 3. The description restates include_history's effect and the pagination meaning of limit, but it mostly repeats what the schema already says rather than adding new constraints (e.g., it never clarifies how days interacts with group_name or what happens to history when days is narrowed).

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 opening sentence gives a concrete verb and resource: how well sector/ETF-basket direction calls held up against a majority-class baseline, with the returned unit spelled out as hit_rate_ema per (market, group, interval, regime_bucket). The 'Level 2 (ETF/basket/sector granularity — Level 1 is individual symbols)' line draws an explicit boundary against the symbol-level calibration tool, so an agent can pick the right one without opening either schema.

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?

It supplies concrete trigger phrases in two languages, an explicit 'When to call' rule (Layer D evidence in the trust pyramid), prerequisites ('none'), and a next step (include_history=True for the daily trend). What it lacks is a named alternative for the individual-symbol case — the Level 1 reference implies a sibling but never names it, so the agent must guess which tool covers symbols.

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.