Skip to main content
Glama

Kyrodata — Commodity Price Forecasts & Trade Intelligence

Explain one level of the forecast pyramid

kyrodata_explain_pyramid_level
Read-onlyIdempotent

Explains the pyramid's arithmetic for one commodity and horizon: the seven levels side by side (label, push %, weight share, confidence, contribution %) and, for the levels that did not enter, the reason with its ruler (hit rate vs base rate, number of origins). horizon fixes the month and shows the seven levels; levelKey flips the cut, following one level across all four horizons instead. This is the drill-down of kyrodata_get_hub_summary — the 'por quê?' behind a verdict that tool already gave. A question about the physical harvest rather than the arithmetic belongs to kyrodata_get_climate_reading. Credit class: level (any level tool in a 60-second session = 2 credits; a session is capped at 3).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "hub": "<hub>",
      "horizon": "<horizon>"
    },
    "name": "kyrodata_explain_pyramid_level"
  }
}

Input Schema

NameRequiredDescriptionDefault
hubYesWhich commodity hub to read.
horizonYesHow far ahead the forecast looks: 1, 3, 6 or 12 months from the last published month.
levelKeyNoOne level of the pyramid. Given, the answer follows that level across all four horizons instead of showing the eight side by side.
response_formatNoHow much of the answer to return. `concise` (the default) carries the headline figures; `detailed` adds the row-level series behind them and counts against the export quota.

Output Schema

NameRequiredDescriptionDefault
dataYesRaw numbers behind the text.
memoYestrue = identical call in the last 10 min, served again: 0 credits.
rowsNoTable rows; detailed only, capped per tool.
errorNoFailure message when status = error.
linksYesscreen = product page with these numbers.
deniedNoWhen status = denied: reason, feature, upgradeUrl.
statusYesok = data; denied = plan; error = failure or timeout.
windowNoLike-for-like window: from, to (YYYY-MM), label, months, crossesSeason.
caveatsYesReading caveats.
creditsYescharged, balance (null = unlimited), resetAt, session {charged, endsAt} of the 60-s billing session.
sourcesYesPer source: label, nameable, asOf.
dataVersionYesIdentity of the data that answered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / levelKey / description
      Previous value: -"One level of the pyramid. Given, the answer follows that level across all four horizons instead of showing the seven side by side."New value: +"One level of the pyramid. Given, the answer follows that level across all four horizons instead of showing the eight side by side."
    • changedInput schema / properties / levelKey / enum
      Previous value: -[
      -  "climate",
      -  "costs",
      -  "production",
      -  "logistics",
      -  "trade",
      -  "macro",
      -  "supply_demand"
      -]New value: +[
      +  "climate",
      +  "costs",
      +  "production",
      +  "logistics",
      +  "world",
      +  "trade",
      +  "macro",
      +  "supply_demand"
      +]
  2. Changed4 schema fields changed
    • addedInput schema / properties / horizon / description
      Added value: +"How far ahead the forecast looks: 1, 3, 6 or 12 months from the last published month."
    • addedInput schema / properties / hub / description
      Added value: +"Which commodity hub to read."
    • addedInput schema / properties / levelKey / description
      Added value: +"One level of the pyramid. Given, the answer follows that level across all four horizons instead of showing the seven side by side."
    • addedInput schema / properties / response_format / description
      Added value: +"How much of the answer to return. `concise` (the default) carries the headline figures; `detailed` adds the row-level series behind them and counts against the export quota."
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses a cost model not present in structured fields: credit class 'level', 2 credits for any level tool in a 60-second session, session cap of 3. It also flags that `detailed` counts against the export quota, which is a concrete side effect an agent cannot see in the schema.

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 core explanation, then routing, then cost — a sensible order with no filler sentences. It is dense and long for a single tool, and the seven-vs-eight level discrepancy costs a bit of trust in the text.

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 an output schema present, the description need not describe return shapes, and it correctly focuses on the two analysis modes, sibling routing, and quota/credit costs. The only real gap is the inconsistent level count, which could mislead an agent reasoning about how many rows to expect.

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%, so most parameter meaning is already documented; the description still adds the precedence relationship between `horizon` and `levelKey` (one fixes the month, the other flips the cut) that the schema states only per-parameter. Minor noise: it says 'seven levels' while the `levelKey` enum and its own schema text list eight, which leaves the agent uncertain about the exact count.

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 — explains the pyramid's arithmetic for one commodity and horizon — and enumerates exactly what is returned (label, push %, weight share, confidence, contribution %, plus non-entry reasons with hit rate vs base rate). It also names the siblings it is not (kyrodata_get_hub_summary, kyrodata_get_climate_reading), so an agent can separate it from them without opening schemas.

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?

Gives an explicit routing rule: this is the drill-down of kyrodata_get_hub_summary, the 'por quê?' behind a verdict that tool already produced, and a question about the physical harvest belongs to kyrodata_get_climate_reading. It also explains which parameter selects which cut — `horizon` for the cross-section, `levelKey` for one level across horizons.

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