Skip to main content
Glama

Compare Perf To Baseline

compare-perf-to-baseline
Read-onlyIdempotent

Compare a run (runId) or filtered target (testchimpId plus optional dimensions) to its promoted baseline. envClass is required. Optional thresholds override max p95 regression percent and maximum fail-rate increase.

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": {
      "envClass": "<envClass>"
    },
    "name": "compare-perf-to-baseline"
  }
}

Input Schema

NameRequiredDescriptionDefault
botIdNoQA bots: your botId from your stored TestChimp binding.
runIdNo
datasetNo
llmModeNo
profileNo
envClassYes
projectIdNoThe TestChimp project this repo belongs to: projectId from the repo's .testchimp/creds.json. Pass it on every call when working in a repo. Not a secret.
environmentNo
testchimpIdNo
projectApiKeyNoProject API key. QA bots: required on every call except get-bot-credentials, get-project-credentials and get-bot-compat. Others: only to look up a repo's projectId via get-project-credentials when its creds file has a key but no projectId. Prefer projectId. Never print it.
maxFailRateIncreaseNo
maxP95RegressionPercentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / projectApiKey / description
      Previous value: -"QA bots: your own project API key from your stored TestChimp binding. Required on every call except get-bot-credentials, get-project-credentials and get-bot-compat. Never print it."New value: +"Project API key. QA bots: required on every call except get-bot-credentials, get-project-credentials and get-bot-compat. Others: only to look up a repo's projectId via get-project-credentials when its creds file has a key but no projectId. Prefer projectId. Never print it."
    • addedInput schema / properties / projectId
      Added value: +{
      +  "description": "The TestChimp project this repo belongs to: projectId from the repo's .testchimp/creds.json. Pass it on every call when working in a repo. Not a secret.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / botId
      Added value: +{
      +  "description": "QA bots: your botId from your stored TestChimp binding.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / projectApiKey
      Added value: +{
      +  "description": "QA bots: your own project API key from your stored TestChimp binding. Required on every call except get-bot-credentials, get-project-credentials and get-bot-compat. Never print it.",
      +  "maxLength": 256,
      +  "minLength": 8,
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds that envClass is mandatory and that threshold parameters override the default max p95 regression and fail-rate increase. It does not disclose what the comparison yields (pass/fail verdict, per-metric deltas) or what happens when no baseline has been promoted.

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 with the input-mode choice front-loaded, followed by the required field and the threshold overrides. No filler or repetition. The only weakness is that the compressed phrase 'optional dimensions' pushes work onto the reader.

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 12-parameter, no-output-schema tool with low schema coverage, the description covers the core invocation paths but not the response shape or the meaning of the 'dimensions' set. An agent could probably call it, but would be guessing about which optional parameters act as dimensions and what the result contains.

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?

With 12 parameters and only 25% schema description coverage, the description compensates partially: it explains runId, testchimpId, envClass, maxP95RegressionPercent and maxFailRateIncrease. But 'optional dimensions' is never enumerated, leaving dataset, llmMode, profile and environment with no meaning in either the description or the schema.

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: compare a run (runId) or a filtered target (testchimpId plus dimensions) against its promoted baseline. It also distinguishes the two input modes, which is genuinely clarifying. It doesn't name sibling tools such as promote-perf-baseline or list-perf-baselines, so differentiation from those is left to inference.

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 implicitly tells the agent which input shape to provide (runId vs testchimpId + dimensions) and that envClass is required, which is useful selection guidance. However, it never states when to prefer this tool over promote-perf-baseline or list-perf-baselines, nor any preconditions such as requiring an already-promoted baseline.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.