Skip to main content
Glama
souvikdu

perfonext-profiler-mcp

How To Collect a CPU Profile

how_to_collect

Get a ready-to-run command and step-by-step recipe for capturing a V8 CPU profile and loading it with load_profile. Choose the scenario matching your Next.js or Node.js execution.

Instructions

Returns a ready-to-run command and step-by-step recipe for capturing a V8 CPU profile, then loading it with load_profile. Use this when you do not yet have a .cpuprofile file. Choose the scenario that matches how the code runs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scenarioNoHow the code under test runs. "next-server" (default) profiles a Next.js production server; "script" profiles a Next.js standalone server.js (or another Node entry).

Schema Changelog

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

  1. First observedv0.7.2

TDQS

A4.3/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. It clearly discloses that the tool returns instructions rather than performing profiling itself, and it notes the relationship to load_profile. It does not detail output structure, but that is less critical for a how-to recipe tool.

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?

Three compact sentences fully convey purpose, trigger condition, and usage direction. Key information is front-loaded and there is no filler.

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?

For a simple tool with one optional enum parameter and no output schema, the description is complete: it says what is returned, when to call it, and how to choose the parameter. The sibling tool reference helps the agent understand the overall workflow.

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?

The schema already provides 100% coverage for the single 'scenario' parameter, including enum descriptions. The description reinforces selecting the scenario that matches execution, but does not meaningfully add beyond 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 clearly states the tool returns a ready-to-run command and step-by-step recipe for capturing a V8 CPU profile and loading it with load_profile. It identifies the resource and action precisely, and the 'when you do not yet have a .cpuprofile file' condition distinguishes it from analysis tools.

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 explicitly says to use this tool when no .cpuprofile file exists, and tells the agent to choose the scenario matching how the code runs. It also references load_profile as the follow-up tool, though it does not explicitly enumerate all sibling exclusions.

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