Skip to main content
Glama

get_metric_history

Read-onlyIdempotent

Retrieves a bounded page of metric history for an MLflow run; inspect truncation and pass next_page_token to fetch additional records.

Instructions

Read a bounded metric-history page. Check truncation and follow next_page_token.

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": {
      "repository": "<repository>",
      "run_id": "<run_id>",
      "metric": "<metric>"
    },
    "name": "get_metric_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
metricYes
run_idYes
page_tokenNo
repositoryYes

Output Schema

NameRequiredDescriptionDefault
itemsNo
sourceYes
revisionNo
warningsNo
truncatedNo
repositoryYes
next_page_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral information beyond that by disclosing that results are paginated and may be truncated, and instructing the agent to follow next_page_token. It stops short of describing ordering, what happens with an expired token, or how bounds are determined.

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?

Two short sentences with zero filler, and the pagination instruction is front-loaded after the purpose statement. The terseness is efficient but edges toward under-specification given the untouched parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With five parameters at 0% schema coverage and an output schema that covers return shape, the description is the only place to explain required inputs like repository, run_id, and metric, and it does none of that. For a paginated read tool with three required arguments, the definition is too thin to let an agent call it confidently without inspecting the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, so the description must carry the burden and does not. Only page_token gets any treatment (via "follow next_page_token"); repository, run_id, metric, and especially the limit parameter's bounding behavior are never explained, leaving an agent to guess at identifiers, scoping, and page size semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 ("Read a bounded metric-history page"), which is clearly distinct from siblings like get_run, compare_runs, or search_runs. It does not explicitly name or differentiate against an alternative, but the resource scope is unambiguous enough for selection.

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?

The description gives operational guidance on pagination ("Check truncation and follow next_page_token"), which tells the agent how to iterate. However, it offers no when-to-use vs when-not guidance, no routing to siblings such as compare_runs for cross-run analysis, and no prerequisites for locating run_id or repository values.

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