Skip to main content
Glama
souvikdu

perfonext-profiler-mcp

Suggest Optimizations

suggest_optimizations

Analyze CPU profiles to get structured optimization suggestions for hot functions, detecting expensive patterns like recursion, high fan-in, and dominant callers.

Instructions

Analyzes the profile and returns structured optimization suggestions for the hottest functions. Detects high fan-in, recursion, dominant callers, V8-specific patterns, always reports CPU self-time cost for expensive functions, and deduplicates functions split across multiple call sites.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of functions to analyze (default: 5)
profileIdYesProfile ID returned by load_profile

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.7.2

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does so well, disclosing the analysis types, the 'always reports CPU self-time cost' invariant, and the deduplication behavior. It only stops short of stating side-effect status or return-shape details.

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 a single dense sentence that front-loads the core purpose and then packs high-value behavioral details without repetition or filler. Each clause earns its place.

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

Completeness4/5

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

For a no-annotation, no-output-schema tool, the description covers the key behaviors an agent needs to invoke it confidently: input, what is detected, and what is returned. It leans on the schema for parameter details and only lightly skips explicit sibling differentiation.

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 100%, so the parameters are already fully documented. The description adds no parameter-level semantics, but none are required because profileId and limit are self-explanatory and described in the schema.

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 opens with a specific action ('Analyzes the profile') and a concrete deliverable ('returns structured optimization suggestions for the hottest functions'), making the tool's purpose unmistakable. The detection details (fan-in, recursion, V8 patterns) further separate it from siblings like get_hotspots or get_profile_summary.

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?

The intended use is implied: call this when you want actionable optimization guidance rather than raw hotspot data. However, it never explicitly states when to prefer this tool over get_hotspots or explain_function, and it offers no exclusions or preconditions.

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

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/souvikdu/perfonext-profiler-mcp'

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