Skip to main content
Glama

Replay forecast performance

score_forecasts
Read-onlyIdempotent

Backtests NoiseFloor's one-step forecast on historical readings, reporting coverage, interval score, misses, and baseline comparison. Requires at least 20 observations; validates without hindsight.

Instructions

Backtest NoiseFloor's own one-step forecast on chronological historical prefixes, issuing before observing and then updating without hindsight. Use to evaluate that one-step forecast's coverage and misses; this tool does not accept externally supplied predictions. At least 20 readings are required; shorter valid histories return ok=false. Successful results contain n_forecasts, empirical_coverage, nominal_coverage, score, baseline_score, beats_baseline, records, misses and worst_misses. Scores are mean weighted interval scores in input units (lower is better), compared with fixed historical-error quantiles. Records use zero-based input indices and retain actual, forecast, interval and missed_by. within_coverage_tolerance and its calibrated alias mean observed coverage is within 0.05 of target; they are descriptive, not a certification or significance test. Coverage and favorable scores do not establish future market performance or profitability.

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": {
      "values": "<values>"
    },
    "name": "score_forecasts"
  }
}

Input Schema

NameRequiredDescriptionDefault
valuesYesOne to 2048 chronological realized observations with consistent units/cadence; at least 20 to score. Predictions begin after ten one-step errors, so the first scored record has zero-based index 11.
nominalNoTarget interval coverage fraction, default 0.80. Use the same value as the live one-step forecast for like-for-like replay; not a confidence level for the backtest result.

Output Schema

NameRequiredDescriptionDefault
okNoFalse denotes insufficient history; forecast or scoring fields are then absent.
errorNoValidation or computation failure message; inspect MCP isError or the HTTP status.
scoreNoMean adaptive weighted interval score.
methodNoShared forecast issuance and scoring method.
missesNoEvery uncovered observation.
caveatsNoOrdered statements or identifiers.
readingNoResult interpretation or minimum-history requirement.
recordsNoEvery scored observation.
n_missesNoNumber of uncovered observations.
validityNoCoverage is empirical only.
guaranteeNoNo statistical or market-performance guarantee is made.
calibratedNoCompatibility alias of within_coverage_tolerance; descriptive only.
n_forecastsNoNumber of issued forecasts scored.
worst_missesNoAt most five misses sorted by distance outside the interval.
baseline_scoreNoMean baseline weighted interval score.
beats_baselineNoAdaptive mean score is strictly below baseline.
nominal_coverageNoTarget coverage fraction.
records_completeNoAll scored observations are included.
skill_vs_baselineNoOne minus adaptive/baseline score; null when baseline score is zero. Null means unavailable or not applicable, never zero.
empirical_coverageNoObserved covered fraction.
calibration_criterionNoDescriptive tolerance rule, not a significance test.
within_coverage_toleranceNoObserved coverage is within 0.05 of the target.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.4
    • changedInput schema / properties / nominal / description
      Previous value: -"Target interval coverage fraction, default 0.80. Use the same value passed to forecast_next for like-for-like replay; not a confidence level for the backtest result."New value: +"Target interval coverage fraction, default 0.80. Use the same value as the live one-step forecast for like-for-like replay; not a confidence level for the backtest result."
  2. Changed4 schema fields changedv0.4.3
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "allOf": [
      +      {
      +        "if": {
      +          "properties": {
      +            "ok": {
      +              "const": true
      +            }
      +          }
      +        },
      +        "then": {
      +          "required": [
      +            "n_forecasts",
      +            "nominal_coverage",
      +            "empirical_coverage",
      +            "calibrated",
      +            "within_coverage_tolerance",
      +            "calibration_criterion",
      +            "score",
      +            "baseline_score",
      +            "beats_baseline",
      +            "skill_vs_baseline",
      +            "n_misses",
      +            "records",
      +            "misses",
      +            "worst_misses",
      +            "records_complete"
      +          ]
      +        }
      +      }
      +    ],
      +    "properties": {
      +      "baseline_score": {},
      +      "beats_baseline": {},
      +      "calibrated": {},
      +      "calibration_criterion": {},
      +      "caveats": {},
      +      "empirical_coverage": {},
      +      "guarantee": {},
      +      "method": {},
      +      "misses": {},
      +      "n_forecasts": {},
      +      "n_misses": {},
      +      "nominal_coverage": {},
      +      "ok": {},
      +      "reading": {},
      +      "records": {},
      +      "records_complete": {},
      +      "score": {},
      +      "skill_vs_baseline": {},
      +      "validity": {},
      +      "within_coverage_tolerance": {},
      +      "worst_misses": {}
      +    },
      +    "required": [
      +      "ok",
      +      "validity",
      +      "guarantee",
      +      "method",
      +      "caveats",
      +      "reading"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Existing tool-error payload; no successful result fields are implied.",
      +    "properties": {
      +      "error": {
      +        "description": "Validation or computation failure message; inspect MCP isError or the HTTP status.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / description
      Previous value: -"Tool-specific result object described in each tool's description. Check status/ok/state, reading, validity and limits before using numbers. MCP returns this object in structuredContent and JSON text; invalid input returns isError=true with an error field. No tool fetches sources or executes trades."New value: +"Forecast replay scores or insufficient-history result. Tool errors retain the separate error-message shape."
    • addedOutput schema / properties
      Added value: +{
      +  "baseline_score": {
      +    "description": "Mean baseline weighted interval score.",
      +    "type": "number"
      +  },
      +  "beats_baseline": {
      +    "description": "Adaptive mean score is strictly below baseline.",
      +    "type": "boolean"
      +  },
      +  "calibrated": {
      +    "description": "Compatibility alias of within_coverage_tolerance; descriptive only.",
      +    "type": "boolean"
      +  },
      +  "calibration_criterion": {
      +    "description": "Descriptive tolerance rule, not a significance test.",
      +    "type": "string"
      +  },
      +  "caveats": {
      +    "description": "Ordered statements or identifiers.",
      +    "items": {
      +      "description": "One retained statement or identifier.",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "empirical_coverage": {
      +    "description": "Observed covered fraction.",
      +    "type": "number"
      +  },
      +  "error": {
      +    "description": "Validation or computation failure message; inspect MCP isError or the HTTP status.",
      +    "type": "string"
      +  },
      +  "guarantee": {
      +    "description": "No statistical or market-performance guarantee is made.",
      +    "type": "null"
      +  },
      +  "method": {
      +    "description": "Shared forecast issuance and scoring method.",
      +    "type": "string"
      +  },
      +  "misses": {
      +    "description": "Every uncovered observation.",
      +    "items": {
      +      "additionalProperties": false,
      +      "description": "One prequential issue/observe/score record; future observations do not alter it.",
      +      "properties": {
      +        "actual": {
      +          "description": "Observed value in input units.",
      +          "type": "number"
      +        },
      +        "adaptive_alpha": {
      +          "description": "Clipped adaptive miscoverage parameter as a fraction.",
      +          "type": "number"
      +        },
      +        "baseline_score": {
      +          "description": "Historical-quantile baseline weighted interval score in input units.",
      +          "type": "number"
      +        },
      +        "covered": {
      +          "description": "Actual value lies inside the issued interval.",
      +          "type": "boolean"
      +        },
      +        "error_history_size": {
      +          "description": "Historical absolute errors used before issuing this forecast.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "forecast": {
      +          "description": "One-step random-walk point forecast in input units.",
      +          "type": "number"
      +        },
      +        "index": {
      +          "description": "Zero-based index of the observation scored after forecast issuance.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "interval": {
      +          "description": "Lower and upper bounds, in that order.",
      +          "items": {
      +            "description": "Bound in the original input units.",
      +            "type": "number"
      +          },
      +          "maxItems": 2,
      +          "minItems": 2,
      +          "type": "array"
      +        },
      +        "missed_by": {
      +          "description": "Distance outside the interval in input units, zero when covered.",
      +          "type": "number"
      +        },
      +        "nominal_coverage": {
      +          "description": "Requested target coverage as a fraction, not a guarantee.",
      +          "type": "number"
      +        },
      +        "score": {
      +          "description": "Adaptive weighted interval score in input units; lower is better.",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "index",
      +        "forecast",
      +        "interval",
      +        "nominal_coverage",
      +        "adaptive_alpha",
      +        "error_history_size",
      +        "actual",
      +        "covered",
      +        "missed_by",
      +        "score",
      +        "baseline_score"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "n_forecasts": {
      +    "description": "Number of issued forecasts scored.",
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "n_misses": {
      +    "description": "Number of uncovered observations.",
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "nominal_coverage": {
      +    "description": "Target coverage fraction.",
      +    "type": "number"
      +  },
      +  "ok": {
      +    "description": "False denotes insufficient history; forecast or scoring fields are then absent.",
      +    "type": "boolean"
      +  },
      +  "reading": {
      +    "description": "Result interpretation or minimum-history requirement.",
      +    "type": "string"
      +  },
      +  "records": {
      +    "description": "Every scored observation.",
      +    "items": {
      +      "additionalProperties": false,
      +      "description": "One prequential issue/observe/score record; future observations do not alter it.",
      +      "properties": {
      +        "actual": {
      +          "description": "Observed value in input units.",
      +          "type": "number"
      +        },
      +        "adaptive_alpha": {
      +          "description": "Clipped adaptive miscoverage parameter as a fraction.",
      +          "type": "number"
      +        },
      +        "baseline_score": {
      +          "description": "Historical-quantile baseline weighted interval score in input units.",
      +          "type": "number"
      +        },
      +        "covered": {
      +          "description": "Actual value lies inside the issued interval.",
      +          "type": "boolean"
      +        },
      +        "error_history_size": {
      +          "description": "Historical absolute errors used before issuing this forecast.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "forecast": {
      +          "description": "One-step random-walk point forecast in input units.",
      +          "type": "number"
      +        },
      +        "index": {
      +          "description": "Zero-based index of the observation scored after forecast issuance.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "interval": {
      +          "description": "Lower and upper bounds, in that order.",
      +          "items": {
      +            "description": "Bound in the original input units.",
      +            "type": "number"
      +          },
      +          "maxItems": 2,
      +          "minItems": 2,
      +          "type": "array"
      +        },
      +        "missed_by": {
      +          "description": "Distance outside the interval in input units, zero when covered.",
      +          "type": "number"
      +        },
      +        "nominal_coverage": {
      +          "description": "Requested target coverage as a fraction, not a guarantee.",
      +          "type": "number"
      +        },
      +        "score": {
      +          "description": "Adaptive weighted interval score in input units; lower is better.",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "index",
      +        "forecast",
      +        "interval",
      +        "nominal_coverage",
      +        "adaptive_alpha",
      +        "error_history_size",
      +        "actual",
      +        "covered",
      +        "missed_by",
      +        "score",
      +        "baseline_score"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "records_complete": {
      +    "const": true,
      +    "description": "All scored observations are included.",
      +    "type": "boolean"
      +  },
      +  "score": {
      +    "description": "Mean adaptive weighted interval score.",
      +    "type": "number"
      +  },
      +  "skill_vs_baseline": {
      +    "anyOf": [
      +      {
      +        "description": "One minus adaptive/baseline score; null when baseline score is zero.",
      +        "type": "number"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "One minus adaptive/baseline score; null when baseline score is zero. Null means unavailable or not applicable, never zero."
      +  },
      +  "validity": {
      +    "const": "empirical_only",
      +    "description": "Coverage is empirical only.",
      +    "type": "string"
      +  },
      +  "within_coverage_tolerance": {
      +    "description": "Observed coverage is within 0.05 of the target.",
      +    "type": "boolean"
      +  },
      +  "worst_misses": {
      +    "description": "At most five misses sorted by distance outside the interval.",
      +    "items": {
      +      "additionalProperties": false,
      +      "description": "One prequential issue/observe/score record; future observations do not alter it.",
      +      "properties": {
      +        "actual": {
      +          "description": "Observed value in input units.",
      +          "type": "number"
      +        },
      +        "adaptive_alpha": {
      +          "description": "Clipped adaptive miscoverage parameter as a fraction.",
      +          "type": "number"
      +        },
      +        "baseline_score": {
      +          "description": "Historical-quantile baseline weighted interval score in input units.",
      +          "type": "number"
      +        },
      +        "covered": {
      +          "description": "Actual value lies inside the issued interval.",
      +          "type": "boolean"
      +        },
      +        "error_history_size": {
      +          "description": "Historical absolute errors used before issuing this forecast.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "forecast": {
      +          "description": "One-step random-walk point forecast in input units.",
      +          "type": "number"
      +        },
      +        "index": {
      +          "description": "Zero-based index of the observation scored after forecast issuance.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "interval": {
      +          "description": "Lower and upper bounds, in that order.",
      +          "items": {
      +            "description": "Bound in the original input units.",
      +            "type": "number"
      +          },
      +          "maxItems": 2,
      +          "minItems": 2,
      +          "type": "array"
      +        },
      +        "missed_by": {
      +          "description": "Distance outside the interval in input units, zero when covered.",
      +          "type": "number"
      +        },
      +        "nominal_coverage": {
      +          "description": "Requested target coverage as a fraction, not a guarantee.",
      +          "type": "number"
      +        },
      +        "score": {
      +          "description": "Adaptive weighted interval score in input units; lower is better.",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "index",
      +        "forecast",
      +        "interval",
      +        "nominal_coverage",
      +        "adaptive_alpha",
      +        "error_history_size",
      +        "actual",
      +        "covered",
      +        "missed_by",
      +        "score",
      +        "baseline_score"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 5,
      +    "type": "array"
      +  }
      +}
  3. Changed4 schema fields changedv0.4.3-glama.1
    • addedInput schema / properties / nominal / default
      Added value: +0.8
    • addedInput schema / properties / nominal / description
      Added value: +"Target interval coverage fraction, default 0.80. Use the same value passed to forecast_next for like-for-like replay; not a confidence level for the backtest result."
    • addedInput schema / properties / values / description
      Added value: +"One to 2048 chronological realized observations with consistent units/cadence; at least 20 to score. Predictions begin after ten one-step errors, so the first scored record has zero-based index 11."
    • addedOutput schema / description
      Added value: +"Tool-specific result object described in each tool's description. Check status/ok/state, reading, validity and limits before using numbers. MCP returns this object in structuredContent and JSON text; invalid input returns isError=true with an error field. No tool fetches sources or executes trades."
  4. Changed7 schema fields changedv0.4.1
    • removedInput schema / properties / nominal / description
      Removed value: -"range coverage, default 0.8"
    • addedInput schema / properties / nominal / exclusiveMaximum
      Added value: +1
    • addedInput schema / properties / nominal / exclusiveMinimum
      Added value: +0
    • removedInput schema / properties / values / description
      Removed value: -"the metric's history, oldest first"
    • addedInput schema / properties / values / maxItems
      Added value: +2048
    • addedInput schema / properties / values / minItems
      Added value: +1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  5. First observedv0.1.2

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the read-only/idempotent annotations: it discloses the no-hindsight sequencing discipline, the minimum-history gate and its ok=false outcome, the scoring method (mean weighted interval scores in input units, lower is better, against fixed historical-error quantiles), zero-based indexing with first scored record at index 11, and the limits of within_coverage_tolerance. The closing caveat that coverage and favorable scores do not establish future performance is exactly the kind of interpretive guardrail an agent needs.

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?

Purpose and constraints are front-loaded and nearly every sentence carries information. The main inefficiency is the long enumeration of result fields (n_forecasts, empirical_coverage, score, beats_baseline, records, misses, worst_misses), which duplicates the output schema and could be trimmed.

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 two-parameter backtest tool with an output schema and read-only annotations, this covers everything an agent needs: when to call it, the history-length gate, the scoring interpretation, index conventions, and what the results do not prove. The output schema handles field-level detail, so the description's interpretive framing is the right complement.

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 both parameters are already fully documented, including the nominal default and the 20-reading threshold. The description restates the minimum-reading requirement but adds no new syntax or format detail for values or nominal, so the baseline of 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?

States a specific verb and resource ('Backtest NoiseFloor's own one-step forecast on chronological historical prefixes') and immediately scopes it against the obvious alternative by saying it does not accept externally supplied predictions. An agent can distinguish this from forecast_next or ab_test without opening a 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?

Gives a clear use case ('evaluate that one-step forecast's coverage and misses') and an explicit exclusion ('does not accept externally supplied predictions'), plus a hard prerequisite of 20 readings with the failure mode (ok=false). It stops short of naming a sibling as the alternative for external-prediction scoring, so the routing is implied rather than explicit.

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