Skip to main content
Glama

Performance baseline and gate

compare_performance

Detect performance regressions by comparing recent runs against baselines and budgets, failing changes that are statistically and practically significant.

Instructions

Performance regression gate on runs measure_performance kept. compare (default): the last runs against baseline and budgets in .appdyno/perf/, failing a change statistically and practically significant. baseline: keeps the last runs (3 needed; replace anew); budget: a kind's max, min. why: a regression's cause by its flow, restarting the app; reference: its baseline side. functions: two cpu ids, from, to. query: a bounded table of a kept trace (read-only sql, table). prune: traces. Returns the verdict.

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": "compare_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
appNo
maxNo
minNo
sqlNo
dsymNo
fromNo
kindNo
lastNo
limitNo
tableNo
traceNo
actionNocompare
dryRunNo
formatNotext
limitGbNo
replaceNo
scenarioNo
deviceClassNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.4

TDQS

B3.2/5.0
Behavior3/5

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

Only openWorldHint is annotated, so the description carries most of the burden. It discloses that compare can fail a statistically and practically significant change, that query uses read-only SQL over a bounded trace table, and that baseline replaces kept runs, but it leaves the destructive effects of prune, permissions, dryRun behavior, and output formats unclear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded and organized as a compact list of action modes with little filler. However, the telegraphic fragments and ambiguous phrases such as 'two cpu ids, from, to' reduce clarity without making the definition appropriately informative for a 19-parameter tool.

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?

For a 19-parameter, nine-action tool with no output schema and only openWorldHint, the description leaves too much unresolved: most parameter semantics, side effects, and the shape of the returned verdict are unexplained. It is not complete enough for confident invocation across modes.

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 19 parameters. The description maps action values and a few mode-specific parameters such as kind/max/min, sql/table, replace, and last runs, but it leaves many parameters—app, dsym, scenario, deviceClass, dryRun, limit, limitGb, format—undocumented, so it only partially compensates for the schema gap.

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 function: a performance regression gate over runs kept by measure_performance, with compare as the default action against baselines and budgets. It distinguishes itself from the sibling measure_performance by focusing on comparison and gating, though the compressed grammar makes the statement less crisp.

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?

Explains what each action value does (compare default, baseline, budget, why, reference, functions, query, prune), giving clear mode-selection context. It does not state explicit when-not conditions or complete prerequisites for most modes beyond baseline needing three runs.

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