Skip to main content
Glama
link0-o

PerfLens MCP Server

by link0-o

compare_docker_optimization_iterations

Idempotent

Compare baseline and candidate Docker builds deterministically using container measurements, profiles, benchmarks, and resource deltas to validate optimization impact under fixed invariants.

Instructions

Deterministically compare one authorized baseline/candidate Build pair using bound container measurements, profiles, Benchmark correctness, resource deltas, and fixed-environment invariants. Different final image digests are accepted only as session-bound Treatment evidence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
baseline_build_idYes
candidate_build_idYes
baseline_analysis_idYes
baseline_benchmark_idYes
candidate_analysis_idYes
minimum_delta_percentNo
candidate_benchmark_idYes
baseline_measurement_idYes
candidate_measurement_idYes
minimum_practical_impact_percentNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriYes
summaryYes
artifact_idYes
artifact_typeYes
schema_versionNo1.0
evidence_qualityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.2

TDQS

B3.4/5.0
Behavior4/5

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

The description adds behavioral context beyond the annotations: it is deterministic, requires an authorized pair, and treats differing image digests as session-bound Treatment evidence rather than as a simple comparison failure. This is meaningful supplementary behavior that the annotations alone do not express.

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?

The description is compact, front-loaded with the primary action, and contains no filler. The second sentence adds an important acceptance constraint, though the phrasing is dense and somewhat jargon-heavy.

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 tool with 11 parameters, 9 required, and no parameter descriptions, the description is not complete enough to guide correct invocation. It does not explain where the IDs come from, how the thresholds behave, or what qualifies as 'authorized'. The presence of an output schema helps, but it does not compensate for the missing parameter and workflow context.

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%, so the description must compensate, but it does not explain the individual parameters. It references baseline/candidate build, measurement, analysis, and benchmark IDs only conceptually, and it never defines minimum_delta_percent or minimum_practical_impact_percent. The parameter names are suggestive but not sufficient.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('compare'), a specific resource ('one authorized baseline/candidate Build pair'), and the dimensions involved (container measurements, profiles, Benchmark correctness, resource deltas, invariants). This clearly distinguishes it from the more narrow sibling tools like compare_profiles, compare_benchmarks, and compare_container_measurements.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No explicit guidance is given about when to use this tool versus the many comparison siblings. The description implies this is for comparing optimization iterations within an authorized session, but it never states when an agent should choose this over compare_profiles, compare_benchmarks, or compare_container_measurements.

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