Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

perf_profile

Read-onlyIdempotent

Analyze V8 CPU profiles and webpack bundle stats to detect large source files and heavy npm dependencies, returning severity-ranked findings with lighter alternatives.

Instructions

Analyze performance: parses V8 CPU profiles (.cpuprofile), webpack bundle stats, detects large source files, and flags heavy npm dependencies with lighter alternatives. Returns severity-ranked findings.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
entriesYes
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description adds that findings come back severity-ranked, which is useful behavioral context, but it leaves a real gap for a zero-parameter tool: it never says how it locates the profiles or bundle stats it analyzes (project root? cwd? auto-discovery?). With annotations carrying the safety story, a 3 fits.

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?

A single dense sentence with the core purpose front-loaded after the 'Analyze performance:' lead-in, and the return characteristic appended last. The four-item capability list is compact and each item earns its place. Slightly list-heavy but not padded.

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?

An output schema exists, so return values need not be explained and the 'severity-ranked findings' note is enough. However, for a no-argument tool that auto-discovers artifacts, the description never clarifies its input scope or what happens when no profile or bundle stats are found. That missing piece is significant given the tool's implicit-input design.

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?

The tool takes no parameters, so there is no schema surface for the description to compensate for, and the baseline is 4. The only shortfall is that the implicit input (which files/directories get analyzed) is unstated, but that is not a parameter semantics issue.

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 names specific verbs and resource types: parses V8 CPU profiles (.cpuprofile), parses webpack bundle stats, detects large source files, and flags heavy npm dependencies with lighter alternatives. That is far more concrete than the bare name perf_profile. It loses a point because it never distinguishes itself from overlapping siblings such as find_large_files or dependency_graph, so an agent cannot tell which to pick from this text alone.

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?

Usage is only implied: an agent can infer it should call this when a .cpuprofile or webpack stats output exists in the project. There is no explicit 'use when' clause, no prerequisites (e.g. profile file must already exist), and no statement of when a different tool is the better choice. Adequate but reliant on inference.

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