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

deep-agentic-core-mcp

Official

Suite From Traces

lens.suite_from_traces
Read-only

Convert successful trace runs into a draft regression suite with trajectory and latency/cost checks, PII masking, and review flags; failed runs are skipped with reasons and nothing is stored.

Instructions

Convert successful trace runs into a draft regression suite: each case expects the run's tool trajectory and latency/cost within a margin, is marked needs_review, and has PII masked unless 'mask' is false. Failed runs are skipped with a reason. Nothing is stored. Needs agenticlens>=0.8.0.

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": {
      "runs": "<runs>",
      "name": "<name>",
      "version": "<version>"
    },
    "name": "lens.suite_from_traces"
  }
}

Input Schema

NameRequiredDescriptionDefault
maskNo
nameYes
runsYes
saltNoSalt for 'hash' masking; a random per-call salt is used (and not returned) when omitted.
versionYes
strategyNo
session_idNoSession to read/write shared state under. Defaults to 'default'.
cost_marginNo
include_outputNo
latency_marginNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.14

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false; the description reinforces this with 'Nothing is stored' and adds substantive behavior: generated cases carry needs_review, PII is masked by default, latency/cost margins are enforced, skipped runs return a reason, and a minimum package version is required. It does not explain what the returned draft looks like or how masking interacts with strategy/salt.

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

Conciseness5/5

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

Five tight sentences, front-loaded with the core transformation, then defaults and constraints, then the version prerequisite. No filler and no repetition of the schema.

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?

A 10-parameter, no-output-schema tool needs more than this. The description covers the default behaviors but leaves the return shape of the 'draft suite' undefined, does not say what to do with it next (e.g. hand it to suite_check), and does not touch most parameters.

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 coverage is only 20%, so the description carries more burden than it does. It explains the semantic of 'mask' (default PII masking) and of latency/cost margins, but 7 of 10 parameters (strategy, salt, include_output, session_id, and the shape of runs/name/version) get no clarification in the description.

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 verb and resource: convert successful trace runs into a draft regression suite. The output artifact (draft suite with per-case expectations) makes it clearly distinct from suite_check or compare_runs without naming siblings.

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?

Implies usage (you must have successful runs to convert) and states that failed runs are skipped with a reason, but never says when to prefer this over alternatives such as lens.suite_check or report_summary, nor what the prerequisite state of 'runs' must be.

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