Skip to main content
Glama
Stankye

profiler-mcp

by Stankye

uprof_compare

Compare two stored profiling results function-by-function to spot regressions. Get a pass/fail verdict with threshold and noise floor controls, and optional failure on regression to gate automated optimization loops.

Instructions

Compare two stored results function-by-function and issue a pass/fail verdict.

The core of an optimize loop: collect a baseline, change code, collect a candidate, compare. The verdict fails when the total or any significant function regresses more than threshold_pct; functions below noise_floor_pct of both runs never affect the verdict. With fail_on_regression=true a failing verdict raises a tool error carrying the reason — use that to gate automated loops.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseline_idYes
candidate_idYes
threshold_pctNo
noise_floor_pctNo
fail_on_regressionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsYes
notesYes
metricYes
verdictYes
baseline_idYes
candidate_idYes
total_baselineYes
total_candidateYes
total_delta_pctYes
Behavior5/5

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

With no annotations, the description fully discloses the verdict logic: failure when total or significant function regresses beyond threshold_pct, noise floor exclusion, and the fail_on_regression error behavior. This is crucial for automated use.

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?

The description is three sentences, front-loaded with the core purpose, then context, then behavioral details. Every sentence contributes value with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description fully covers the tool's behavior, parameter semantics, and usage context. An output schema exists, so return values need not be described. It is complete for the tool's complexity.

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

Parameters5/5

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

The description adds meaning to all parameters: threshold_pct and noise_floor_pct are explained in the verdict logic, fail_on_regression is described as raising a tool error, and baseline_id/candidate_id are implied by the compare operation. This compensates for the 0% schema coverage.

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 clearly states the tool compares two stored results function-by-function and issues a pass/fail verdict. This specific verb+resource distinguishes it from sibling tools like uprof_collect or uprof_report_raw.

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?

The description positions the tool as the core of an optimize loop, explaining when to use it after collecting baseline and candidate. It also explains how to gate automated loops with fail_on_regression, but does not explicitly name alternatives or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Stankye/profiler-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server