Skip to main content
Glama

search_runs

Read-onlyIdempotent

Search active MLflow runs with filter syntax, custom ordering, and pagination to locate experiments matching metric or parameter criteria.

Instructions

Search active runs using MLflow filter syntax, e.g. metrics.accuracy > 0.9.

order_by uses MLflow expressions such as metrics.accuracy DESC. Follow pagination.

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>",
      "experiment_ids": "<experiment_ids>"
    },
    "name": "search_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
order_byNo
page_tokenNo
repositoryYes
filter_stringNo
experiment_idsYes

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.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered. The description adds real context beyond them: results are scoped to active runs, and results are paginated so callers must follow the page token. It does not say what distinguishes active from deleted runs or whether results are capped.

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?

Three short, front-loaded sentences with a useful inline example and no filler. 'Follow pagination' is terse to the point of being vague about how page_token is meant to be used.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the query dialect is the main thing an agent needs. However, with two required parameters undocumented and pagination described only as an instruction, an agent still cannot confidently construct a first call from the description alone.

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 0% across six parameters, so the description carries the burden. It explains filter_string and order_by with syntax and an example, and gestures at pagination, but leaves the required repository and experiment_ids parameters, plus limit, entirely undefined.

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?

States a specific verb and resource ("Search active runs") plus the query dialect (MLflow filter syntax) with a concrete example, which is enough to tell it apart from get_run or compare_runs. It does not explicitly name a sibling or state the boundary with them, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no alternatives named, and no conditions for choosing this over compare_runs or get_run. The only guidance is implicit in 'active runs' and 'filter syntax', leaving the agent to infer the routing.

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