Skip to main content
Glama

profiler.cpu.analyze

Read-only

Re-analyze a stored .cpuprofile artifact to inspect CPU performance data, optionally with a different stack depth for focused profiling results.

Instructions

Re-analyze a stored .cpuprofile artifact, with a different depth if wanted.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "artifact_id": "<artifact_id>"
    },
    "name": "profiler.cpu.analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
artifact_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered; the description adds that it operates on an already-stored artifact and that depth is adjustable. It does not say whether re-analysis replaces or supplements prior results, where the artifact must live, or what the response contains.

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 front-loaded sentence with no filler and the key scoping facts (stored artifact, optional depth) up front. The terseness borders on under-specification rather than verbosity.

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?

A low-complexity read-only tool, but with no output schema and no parameter descriptions the agent still lacks what 'top/depth' controls and what the analysis returns. Adequate but with clear gaps for a tool whose whole value is the analysis output.

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 coverage is 0%, so the description must carry the parameter burden and it largely does not. It gestures at a 'depth' argument and at artifact_id being a stored .cpuprofile, but the actual parameter is named 'top' (a number) with no stated meaning, units, default, or range — the depth/top mapping is left for the agent to guess.

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?

States a specific verb and resource ('Re-analyze a stored .cpuprofile artifact') and adds the distinguishing twist of a configurable depth, which separates it from capture-oriented siblings like profiler.cpu.start/stop. It stops short of naming which sibling produced the artifact or which analyze alternative to pick.

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?

'Re-analyze a stored ... artifact' implies the precondition that a profile must already exist and that this is a post-capture step, which is useful implied usage. There is no explicit when-to-use vs. when-not, no guidance on when re-analysis is warranted over a fresh capture, and no named alternatives.

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

Deploy Server

Other Tools