Skip to main content
Glama

Save baseline

save_baseline

Saves a performance baseline from the last completed run or by running a scenario now, so later runs can be compared against a trusted reference.

Instructions

Save the baseline later runs are compared with. from_last_run=True uses the last completed run's samples (.qa-mcp/perf-report/samples.json); otherwise runs the scenario now and saves it. Do this on main or a release you trust, not on the branch under test.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "save_baseline"
  }
}

Input Schema

NameRequiredDescriptionDefault
vusNo
durationNo
scenarioNo
environmentNo
from_last_runNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does disclose an important side effect: with from_last_run=False it actually executes the scenario, so the agent can infer a slow, potentially costly operation. It also reveals the artifact path (.qa-mcp/perf-report/samples.json). It does not say whether an existing baseline is overwritten, whether that is reversible, or what the response contains — key gaps for a mutation tool.

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 tight sentences, front-loaded with the core concept and the mode switch, with the branch-safety caveat placed last where it belongs. Minor awkwardness in the parenthetical file path breaking the sentence flow, but no filler.

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?

For a five-parameter tool with no annotations and no output schema, the description covers the conceptual model and the most consequential parameter well. It leaves the other four parameters, overwrite behavior, and the return value unaddressed, so it is adequate but not complete.

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 compensate and largely does not. It explains only from_last_run (and its default of true) plus implicitly the scenario name; vus, duration, and environment are never mentioned, nor is the crucial point that they are presumably ignored when from_last_run is true.

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 ('Save the baseline') and clarifies what a baseline is by its role: the reference point later runs are compared against. It does not name any of the sibling tools (e.g. run_load_test) to disambiguate, so it is clear on its own terms but not differentiated from alternatives.

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?

It gives explicit environmental guidance — save on main or a trusted release, not on the branch under test — which is genuine when-to-use advice an agent could otherwise get wrong. It also distinguishes the two modes via from_last_run, but never names an alternative tool for the case where the agent wants a plain run instead.

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