Skip to main content
Glama

Review multiple metrics

which_metrics_matter
Read-onlyIdempotent

Rank a board of nonnegative evidence scores for review, with descriptive ordering by default and optional e-BH false-discovery control when scores are valid e-values.

Instructions

Rank a named board of nonnegative evidence scores for review. By default valid_evalues=false: arbitrary nonnegative scores are ranked descriptively and selected stays empty. Set valid_evalues=true only when every input has a justified null expectation at most one; then e-Benjamini-Hochberg (e-BH) controls this family's expected false-discovery proportion at alpha, provided the supplied e-values are valid. The server cannot certify that assertion. Raw returns, z-scores, model confidence and change-monitor statistics do not qualify as valid e-values. Use this after constructing evidence, not to detect a change from a time series. Returns ranked (metric/evidence pairs, descending score), selected, k, n_watched, threshold, descriptive_mean, validity, assumptions and guarantee. Threshold and board_evidence are null without e-value confirmation. Repeated boards are not automatically controlled. Descriptive example: {"evidence":{"latency":12,"errors":3},"valid_evalues":false}.

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": {
      "evidence": "<evidence>"
    },
    "name": "which_metrics_matter"
  }
}

Input Schema

NameRequiredDescriptionDefault
alphaNoTarget expected false-discovery proportion for this supplied family, default 0.10 (10%), strictly between 0 and 1. Only controls selection conditionally when valid_evalues=true; it is not a per-metric probability.
evidenceYesMap 1 to 128 nonempty metric names (up to 128 characters) to finite nonnegative scores; larger scores rank first, ties use metric name. Valid e-values are dimensionless; unverified scores receive descriptive ranking only.
valid_evaluesNoCaller assertion that every score is a valid e-value with defined null, sampling/selection procedure and observation window. Default false performs ranking only. True enables conditional e-BH; it does not validate provenance or the statistical construction.

Output Schema

NameRequiredDescriptionDefault
kNoNumber selected.
noteNoSelection requests review, not trading.
alphaNoRequested expected false-discovery proportion bound, conditional on valid e-values.
errorNoValidation or computation failure message; inspect MCP isError or the HTTP status.
methodNoConditional e-BH or descriptive ranking.
rankedNoInputs sorted by decreasing value then name.
readingNoSelection interpretation.
selectedNoNames selected only when the caller attests valid e-values.
validityNoSelection contract.
guaranteeNoConditional e-BH statement; null for unverified inputs. Null means unavailable or not applicable, never zero.
n_watchedNoNumber of supplied metrics.
thresholdNoe-BH threshold; null without the caller's validity attestation. Null means unavailable or not applicable, never zero.
assumptionsNoOrdered statements or identifiers.
valid_evaluesNoCaller attestation, not a server certification.
board_evidenceNoMean supplied valid e-values; null without attestation. Null means unavailable or not applicable, never zero.
descriptive_meanNoMean supplied values, without certifying their statistical construction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.4
    • changedInput schema / properties / evidence / description
      Previous value: -"Map 1–128 nonempty metric names (up to 128 characters) to finite nonnegative scores; larger scores rank first, ties use metric name. Valid e-values are dimensionless; unverified scores receive descriptive ranking only."New value: +"Map 1 to 128 nonempty metric names (up to 128 characters) to finite nonnegative scores; larger scores rank first, ties use metric name. Valid e-values are dimensionless; unverified scores receive descriptive ranking only."
  2. Changed4 schema fields changedv0.4.3
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "alpha": {},
      +      "assumptions": {},
      +      "board_evidence": {},
      +      "descriptive_mean": {},
      +      "guarantee": {},
      +      "k": {},
      +      "method": {},
      +      "n_watched": {},
      +      "note": {},
      +      "ranked": {},
      +      "reading": {},
      +      "selected": {},
      +      "threshold": {},
      +      "valid_evalues": {},
      +      "validity": {}
      +    },
      +    "required": [
      +      "selected",
      +      "alpha",
      +      "k",
      +      "n_watched",
      +      "threshold",
      +      "board_evidence",
      +      "descriptive_mean",
      +      "ranked",
      +      "valid_evalues",
      +      "validity",
      +      "guarantee",
      +      "assumptions",
      +      "reading",
      +      "method",
      +      "note"
      +    ],
      +    "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: +"A complete nonempty supplied-family result, including unverified rankings. Empty input is a tool error. Tool errors retain the separate error-message shape."
    • addedOutput schema / properties
      Added value: +{
      +  "alpha": {
      +    "description": "Requested expected false-discovery proportion bound, conditional on valid e-values.",
      +    "type": "number"
      +  },
      +  "assumptions": {
      +    "description": "Ordered statements or identifiers.",
      +    "items": {
      +      "description": "One retained statement or identifier.",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "board_evidence": {
      +    "anyOf": [
      +      {
      +        "description": "Mean supplied valid e-values; null without attestation.",
      +        "type": "number"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "Mean supplied valid e-values; null without attestation. Null means unavailable or not applicable, never zero."
      +  },
      +  "descriptive_mean": {
      +    "description": "Mean supplied values, without certifying their statistical construction.",
      +    "type": "number"
      +  },
      +  "error": {
      +    "description": "Validation or computation failure message; inspect MCP isError or the HTTP status.",
      +    "type": "string"
      +  },
      +  "guarantee": {
      +    "anyOf": [
      +      {
      +        "description": "Conditional e-BH statement; null for unverified inputs.",
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "Conditional e-BH statement; null for unverified inputs. Null means unavailable or not applicable, never zero."
      +  },
      +  "k": {
      +    "description": "Number selected.",
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "method": {
      +    "description": "Conditional e-BH or descriptive ranking.",
      +    "type": "string"
      +  },
      +  "n_watched": {
      +    "description": "Number of supplied metrics.",
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "note": {
      +    "description": "Selection requests review, not trading.",
      +    "type": "string"
      +  },
      +  "ranked": {
      +    "description": "Inputs sorted by decreasing value then name.",
      +    "items": {
      +      "additionalProperties": false,
      +      "description": "One ranked input.",
      +      "properties": {
      +        "evidence": {
      +          "description": "Supplied nonnegative value.",
      +          "type": "number"
      +        },
      +        "metric": {
      +          "description": "Caller-supplied name.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "metric",
      +        "evidence"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "reading": {
      +    "description": "Selection interpretation.",
      +    "type": "string"
      +  },
      +  "selected": {
      +    "description": "Names selected only when the caller attests valid e-values.",
      +    "items": {
      +      "description": "Caller-supplied metric name.",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "threshold": {
      +    "anyOf": [
      +      {
      +        "description": "e-BH threshold; null without the caller's validity attestation.",
      +        "type": "number"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "e-BH threshold; null without the caller's validity attestation. Null means unavailable or not applicable, never zero."
      +  },
      +  "valid_evalues": {
      +    "description": "Caller attestation, not a server certification.",
      +    "type": "boolean"
      +  },
      +  "validity": {
      +    "description": "Selection contract.",
      +    "enum": [
      +      "conditional_on_valid_evalues",
      +      "unverified_inputs"
      +    ],
      +    "type": "string"
      +  }
      +}
  3. Changed7 schema fields changedv0.4.3-glama.1
    • addedInput schema / properties / alpha / default
      Added value: +0.1
    • addedInput schema / properties / alpha / description
      Added value: +"Target expected false-discovery proportion for this supplied family, default 0.10 (10%), strictly between 0 and 1. Only controls selection conditionally when valid_evalues=true; it is not a per-metric probability."
    • addedInput schema / properties / evidence / additionalProperties / description
      Added value: +"Nonnegative evidence score for this metric; zero is allowed. Magnitude alone does not prove e-value validity."
    • addedInput schema / properties / evidence / description
      Added value: +"Map 1–128 nonempty metric names (up to 128 characters) to finite nonnegative scores; larger scores rank first, ties use metric name. Valid e-values are dimensionless; unverified scores receive descriptive ranking only."
    • addedInput schema / properties / valid_evalues / default
      Added value: +false
    • addedInput schema / properties / valid_evalues / description
      Added value: +"Caller assertion that every score is a valid e-value with defined null, sampling/selection procedure and observation window. Default false performs ranking only. True enables conditional e-BH; it does not validate provenance or the statistical construction."
    • 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. Changed9 schema fields changedv0.4.1
    • removedInput schema / properties / alpha / description
      Removed value: -"false-discovery rate, default 0.1"
    • addedInput schema / properties / alpha / exclusiveMaximum
      Added value: +1
    • addedInput schema / properties / alpha / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / evidence / additionalProperties / minimum
      Added value: +0
    • removedInput schema / properties / evidence / description
      Removed value: -"metric name -> evidence value, e.g. the 'evidence' field from did_it_change"
    • addedInput schema / properties / evidence / maxProperties
      Added value: +128
    • addedInput schema / properties / evidence / minProperties
      Added value: +1
    • addedInput schema / properties / valid_evalues
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  5. First observedv0.1.2

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the read-only and idempotent annotations, the description discloses the default behavior, what selected and threshold contain under each mode, that the server cannot certify e-value validity, and which common statistics do not qualify as valid e-values. It also explains that repeated boards are not automatically controlled, which is important behavioral context.

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?

The description is dense but front-loads the core ranking behavior and then layers in validity conditions and return semantics. Some material, such as the return-field list and example, is less essential because an output schema and full parameter schema already exist, but most sentences carry real decision value.

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 statistically conditional tool with nested inputs and rich annotations, the description supplies the essential missing behavioral context: what changes when valid_evalues is true, what the guarantee does and does not cover, and how null threshold and board_evidence should be interpreted. An agent has enough information to invoke it correctly and cautiously.

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?

The schema already documents all three parameters thoroughly, but the description adds meaningful interpretation for the central valid_evalues flag and alpha. It clarifies that true is only a caller assertion, that the server cannot validate provenance, and that raw returns, z-scores, model confidence, and change-monitor statistics do not qualify as valid e-values.

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 states a specific verb and resource: rank a named board of nonnegative evidence scores for review. It also distinguishes the tool from change detection and from evidence construction, so an agent can identify its role without opening the schema.

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?

It gives explicit conditional guidance: valid_evalues=false performs descriptive ranking only, while true enables conditional e-BH when every input is a justified e-value. It also states when not to use it, namely for detecting a change from a time series, and warns that repeated boards are not automatically controlled.

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