Skip to main content
Glama

devtools_connect

Attach to a Chrome tab over the DevTools Protocol to start a debugging session. Claims the tab exclusively, marks it in the browser, and reports the loaded state before observation begins.

Instructions

Attach to a Chrome tab over the DevTools Protocol and start observing it (console, network, DOM, debugger). Claims the tab so no other DevCDP session can drive it, marks it visibly in the browser, and reports what was loaded before we attached. Call this once at the start of a debugging session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostNoChrome host.localhost
portNoChrome remote-debugging port.
targetNo'visible' (the tab on screen) | 'url-match:<substring>' | 'index:<n>' from list_tabs | 'new' | a URL substring.visible
windowNo'new' gives this session its own browser window — the fallback when Chrome tab groups are unavailable.current
browserNo'new' launches a separate isolated Chrome on the next free port — a browser no other session has touched.existing
allow_new_tabNoIf every tab is already claimed by another session, open a new one instead of failing.
Install Server

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description takes on the burden of disclosing side effects. It clearly states that the tool claims the tab, blocks other DevCDP sessions, marks the tab visibly, and reports pre-attachment loaded state. This is good transparency, though it does not mention cleanup or failure behavior.

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?

The description is three compact sentences that front-load the core purpose, immediately state the key side effect, and finish with a clear usage directive. Every sentence earns its place with no fluff or repetition.

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

Completeness4/5

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

For a moderately complex connection tool, the description covers the essential preconditions and consequences: when to call it, what it claims, what it starts observing, and what it reports. The lack of an output schema and the absence of annotations mean some return-shape details are unspecified, but the important contextual guidance is present.

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?

The input schema has 100% description coverage, so every parameter is already documented with type, default, and meaning. The tool description does not need to repeat these, and it does not add significant extra parameter-level meaning beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Attach') and a clear resource ('a Chrome tab over the DevTools Protocol'), and it explains the immediate effect: start observing console, network, DOM, and debugger activity. This clearly distinguishes it from sibling tools like devtools_status or devtools_disconnect.

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

Usage Guidelines4/5

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

The description explicitly says to call this once at the start of a debugging session, giving the agent a clear temporal trigger. It does not explicitly discuss alternatives or when not to use it, but the guidance is sufficient for a session-initialization tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dayananda-D/Devcdp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server