Skip to main content
Glama

profiler.coverage.stop

Stops coverage collection and reports unused bytes per script, helping identify dead code after profiling.

Instructions

Stop coverage and report unused bytes per script.

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.coverage.stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
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?

The annotations (readOnlyHint=false, openWorldHint=true) already signal a mutating, environment-touching operation, and 'Stop' is consistent with that, so no contradiction. The description adds value by disclosing that the call produces a per-script unused-bytes report, but it says nothing about what happens if no session is active, whether the run's collected data is destroyed, or how the report is delivered.

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 tight, front-loaded sentence with zero filler. Brevity is the right shape here, though it comes close to under-specification rather than lean precision.

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?

For a state-changing profiler tool with no output schema and an undocumented save_path, the description leaves too much unsaid: what the returned report looks like, whether stopping discards data, and what error conditions arise. An agent has enough to attempt the call but not enough to predict its effects.

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 67%; the two handle parameters are documented in the schema while save_path is documented nowhere. The description mentions a report but never explains that save_path persists it, so half the tool's remaining ambiguity is unaddressed.

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 ('Stop coverage') plus the result ('report unused bytes per script'), which clearly distinguishes it from profiler.coverage.start and the cpu/trace stop siblings. It doesn't explicitly name its paired start tool, but the asymmetry with the start sibling makes the pair legible.

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: an agent can infer this ends a run begun with profiler.coverage.start, but there is no explicit when-to-use statement, no note that an active coverage session is required, and no guidance on when to prefer cpu.stop or trace.stop instead.

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