Skip to main content
Glama
deep-agentic-core-mcp

deep-agentic-core-mcp

Official

Compare Runs

lens.compare_runs
Destructive

Compare baseline and candidate trace runs to detect regressions; omit either run set to reuse stored session runs.

Instructions

Compare baseline and candidate trace runs for regressions. 'baseline'/'candidate' may be omitted to reuse the session's stored runs.

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": "lens.compare_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
baselineNo
candidateNo
session_idNoSession to read/write shared state under. Defaults to 'default'.
regression_thresholdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, yet the description frames the tool purely as a comparison, which reads like a safe analysis. The only hint at statefulness is the offhand note that stored session runs are reused; it never states that the tool writes/persists session state or what a destructive operation here would affect. It does not contradict the annotations, but it leaves the most important behavioral trait unexplained.

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?

Two short sentences with no filler, and the core purpose is front-loaded before the optional-parameter caveat. It is efficient, though the brevity comes at the cost of the stateful behavior discussed above.

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?

With no output schema, destructive annotations, four parameters, and only 25% schema description coverage, the description carries a heavy load and does not meet it. It omits what regression_threshold means, what the compared object shape is, and what the destructive/session-writing side effects are, so an agent cannot call this confidently beyond the zero-arg case.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 25% (only session_id is documented), so the description must compensate, and it does for the two main parameters by explaining that 'baseline' and 'candidate' accept run data and can be omitted in favor of session-stored runs. It says nothing about the shape of the objects in those arrays or about 'regression_threshold', leaving one of four parameters 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?

The description uses a specific verb ('Compare') and names both resources ('baseline and candidate trace runs') plus the goal ('for regressions'), so an agent knows exactly what it produces. It does not differentiate itself from the similarly named sibling core.compare_runs, 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 Guidelines3/5

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

It gives one real usage rule: 'baseline'/'candidate' may be omitted to reuse the session's stored runs, which tells the agent it can call this with zero arguments in a session context. It offers no guidance on when to prefer this over core.compare_runs, suite_check, or the other lens analysis tools, so usage is only partially implied.

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