Skip to main content
Glama

debugger.enable

Turn on the JavaScript debugger for a target page to inspect and list its known scripts.

Instructions

Turn on the JavaScript debugger for a target and list the scripts it knows about.

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

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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already disclose readOnlyHint=false and openWorldHint=true, so the mutating, open-world nature is covered. The description usefully adds that enabling also enumerates known scripts, but omits whether the call is idempotent when the debugger is already on, what happens with no loaded page, or whether enabling impacts performance.

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 that states the action and its immediate result with no filler. Nothing is redundant or buried.

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 well to say the tool returns the script list. However, for a state-changing debugger tool it leaves open idempotency, prerequisite state, and the overlap with debugger.list_scripts, which an agent would need to call it confidently.

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 description coverage is 100%, including the tgt_* and br_* handle formats and the omit-to-default behavior, so the heavy lifting is done structurally. The description only echoes the notion of 'a target' without adding format or defaulting nuance.

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?

The description gives a specific verb and resource ('Turn on the JavaScript debugger') plus the scoping unit ('for a target') and names a concrete outcome ('list the scripts it knows about'). It is clearly distinct from debugger.disable, though it doesn't address how it relates to the similarly-named debugger.list_scripts sibling.

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 is the first step before setting breakpoints or pausing. There is no explicit statement of when to prefer it, no prerequisite note (e.g. connect a browser first), and no mention that debugger.disable is the inverse.

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