Skip to main content
Glama

profiler.cpu.stop

Stop CPU profiling to retrieve per-function self-time and the full .cpuprofile artifact for performance analysis.

Instructions

Stop the CPU profiler and return self-time per function, with the full .cpuprofile as an artifact.

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": "profiler.cpu.stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
save_pathNo
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, so the mutation profile is partly covered. The description usefully adds what the call produces — self-time per function and a full .cpuprofile artifact — but says nothing about what happens if no profiler is running or whether state is discarded.

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?

A single, front-loaded sentence with zero filler; every clause (action, primary return, artifact) carries information.

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?

With no output schema, the description does a good job naming the return payload and artifact, which is the most important missing context. However, it leaves the two undocumented parameters and the precondition for calling it unaddressed, which is thin for a 4-parameter tool.

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 only 50%: target_id and browser_id are documented in the schema, but 'top' and 'save_path' are undocumented in both schema and description. The description makes no attempt to explain any parameter, so it fails to compensate for the coverage gap.

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?

Specific verb + resource ('Stop the CPU profiler') plus a clear statement of what it returns (self-time per function, .cpuprofile artifact). It is clearly the counterpart of profiler.cpu.start, though it doesn't distinguish itself from profiler.cpu.analyze or profile.stop by name.

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: 'Stop the CPU profiler' suggests a profiling session must be running and that profiler.cpu.start precedes it, but no prerequisites, error conditions, or alternatives (e.g., profiler.cpu.analyze for post-processing) are stated.

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