Skip to main content
Glama
Metrx MCP Server

Metrx MCP Server

by metrxbots

Stop Experiment

metrx_stop_experiment
Idempotent

Stop a model routing experiment by marking it completed, preserving recorded results without promoting either model or pausing it. Requires admin API key.

Instructions

Stop a model routing experiment by setting its status to 'completed'. Recorded results are preserved. This does not promote either model — nothing changes about which model the agent runs. Do NOT use for pausing — completion is final. Requires an API key with the 'admin' scope.

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": {
      "agent_id": "<agent_id>",
      "experiment_id": "<experiment_id>"
    },
    "name": "metrx_stop_experiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYesAgent (UUID) the experiment belongs to
experiment_idYesThe experiment ID to stop

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.0
    • addedInput schema / properties / agent_id
      Added value: +{
      +  "description": "Agent (UUID) the experiment belongs to",
      +  "format": "uuid",
      +  "type": "string"
      +}
    • removedInput schema / properties / promote_winner
      Removed value: -{
      -  "default": false,
      -  "description": "If the treatment model won, apply it as the new default model",
      -  "type": "boolean"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "experiment_id"
      -]New value: +[
      +  "agent_id",
      +  "experiment_id"
      +]
  2. First observedv0.1.2

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that results are preserved (consistent with destructiveHint=false), that completion is irreversible ('completion is final', complementing idempotentHint=true), that no model is promoted, and that an API key with the 'admin' scope is required — auth requirements the annotations do not cover.

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?

Four short sentences, front-loaded with the action and its effect, then the caveats. Every sentence carries information, though the 'nothing changes about which model the agent runs' clause partly restates the preceding disclaimer.

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?

For a two-parameter mutation tool this covers effect, irreversibility, side-effect absence, and auth scope — enough to call it correctly. It does not describe the response payload or error conditions, and there is no output schema to fill that gap, but those omissions are minor.

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% and both parameters (agent_id, experiment_id) are documented as UUIDs in the schema. The description adds no format, constraint, or relationship detail beyond that, so the baseline 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 ('Stop a model routing experiment') plus the concrete mechanism ('setting its status to completed'). It also explicitly disclaims what the tool does not do ('does not promote either model'), which removes ambiguity that a bare 'stop' would leave.

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 an explicit exclusion: 'Do NOT use for pausing — completion is final,' which is exactly the confusion an agent would have with a 'stop' verb. It doesn't point to the correct alternative tool for pausing, so it stops just short of full routing guidance.

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