Skip to main content
Glama

debugger.pause

Pauses JavaScript execution at the next statement, letting you inspect runtime state and step through code during browser debugging sessions.

Instructions

Pause JavaScript execution at the next statement.

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": "debugger.pause"
  }
}

Input Schema

NameRequiredDescriptionDefault
wait_msNo
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/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and openWorldHint=true; the description does add genuine behavioral detail by saying the pause lands at the next statement boundary rather than immediately. However it is silent on the critical question of whether the call blocks until the pause is hit or returns immediately, and on what happens if no statement ever executes.

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 word carries information. No restructuring would improve it as prose.

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 debugger-control tool with three parameters, no output schema, and only two weak annotations, the description is too thin: it omits wait_ms semantics, session/attachment prerequisites, and whether the call returns at request time or at pause time. The agent has to guess on the behaviors that most affect correct invocation.

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 description coverage is 67% and the undocumented parameter is wait_ms, which is precisely the one whose meaning matters (how long to wait for the pause). The description adds no parameter meaning whatsoever, leaving the schema and reader to guess. target_id and browser_id are covered by the schema, so only partial compensation would be needed and none is provided.

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 ("Pause JavaScript execution") plus the precise point of effect ("at the next statement"), so the agent knows exactly what operation is requested. It does not differentiate itself from near-siblings such as debugger.wait_for_pause or debugger.resume, which would require reasoning about names alone.

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?

No when-to-use framing, no preconditions (must a debugger session already be attached?), and no mention of the obvious alternative debugger.wait_for_pause. The agent must infer that this actively requests a pause rather than awaiting one.

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