Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

remove_script_on_new_document

Removes a script previously added to run on new documents by its identifier, stopping automatic execution on page load.

Instructions

Remove a script previously added with add_script_on_new_document.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "identifier": "<identifier>"
    },
    "name": "remove_script_on_new_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
identifierYesScript identifier from add_script_on_new_document

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, but it discloses almost nothing: it does not say whether the script stops running immediately, whether removal errors on an unknown identifier, or whether the change persists across sessions. For a mutating tool with zero annotation coverage, that is a significant gap.

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 front-loaded sentence with no filler. It is economically written, though the brevity leaves behavioral and scoping questions for the reader.

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?

For a one-parameter tool with a fully documented schema and no output schema, the definition is minimally sufficient to identify the action. It is not complete enough to predict effects on the running debug session or error behavior on a stale identifier.

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 100% and the single identifier parameter is described as coming 'from add_script_on_new_document,' which the description echoes. No format or validity details are added beyond the schema, so the baseline 3 applies.

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 ('Remove a script') and ties it to its counterpart add_script_on_new_document, so an agent can pair the two. It does not need to restate the name, but it stops short of describing scope (per-target vs. global).

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 implied through the reference to add_script_on_new_document — use this to undo that. There is no explicit when/when-not guidance (e.g., whether removal is permanent, whether it applies to the current target only, or what happens if the script is already gone), and no named alternatives beyond the add tool.

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