Skip to main content
Glama

profiler.cpu.start

Starts CPU sampling on a target browser page to capture profiling data for performance analysis.

Instructions

Start the sampling CPU profiler on a target.

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.start"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the agent knows this is a state-changing, externally-scoped operation. Beyond that the description adds only that the profiler is sampling-based; it says nothing about what happens if a profiler is already running, whether state is reset, how long sampling continues, or what handle the caller gets back. For a start/stop lifecycle tool this is a substantial gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence with zero padding and the action front-loaded, so it reads efficiently. It is, however, under-specified rather than genuinely concise — the brevity comes at the cost of any guidance or behavioral detail.

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

Completeness2/5

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

All three parameters are optional and there is no output schema, so the description would need to say what a successful start yields and what implicit defaults apply (active page, auto-launched browser). It also omits any note about exclusive profiler use. As written, an agent cannot confidently invoke this without trial and error.

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?

The description explains no parameters at all, and schema coverage is 67% — sampling_interval_us has no schema description and no definition of units, defaults, or valid ranges. Two parameters are documented in the schema, so the baseline carries part of the load, but the description does not compensate for the uncovered one.

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 ('Start') and resource ('sampling CPU profiler') with a target scope, which separates it from profiler.coverage.start and profiler.trace.start by naming the profiling mode. It doesn't explicitly name a sibling, but the mode qualifier is enough to identify it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to choose this over profiler.coverage.start, profiler.trace.start, or profiler.cpu.analyze, and no mention of the natural pairing with profiler.cpu.stop. The agent must infer the workflow entirely from the tool name.

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