Skip to main content
Glama
escapeWu

chrome-agent-bridge

by escapeWu

Evaluate in debugger

debugger_evaluate

Evaluate JavaScript expressions in a selected Chrome tab, either globally or within a paused call frame, to inspect and manipulate page state.

Instructions

Evaluate an expression globally or on one paused call frame. This executes code in the selected page target.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYes
expressionYes
callFrameIdNo
awaitPromiseNo
returnByValueNo
targetSessionIdNo
Behavior2/5

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

With no annotations, the description must carry the burden of disclosing behavior. It states 'executes code' which hints at side effects, but does not warn about potential consequences of executing arbitrary expressions, permission requirements, or promise resolution behavior. This is a significant gap for a code execution tool.

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 extremely concise, with two sentences that convey the core purpose without any filler. It is front-loaded and easy to parse.

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?

Given the tool has 6 parameters, no annotations, and no output schema, the description is far too sparse. It barely covers the basic function and leaves out crucial information about parameter usage, behavior, and return values. It under-specifies a potentially complex debugger operation.

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 coverage is 0%, so the description must compensate. It only adds meaning for 'expression' and the distinction between global and call-frame evaluation (callFrameId). It does not explain sessionId, awaitPromise, returnByValue, or targetSessionId, leaving most parameters undefined.

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 clearly states the tool's function: evaluating an expression either globally or on a paused call frame. It uses a specific verb ('Evaluate') and resource ('expression') and distinguishes itself from other debugger tools like get_object_properties or get_scope_variables_enhanced by focusing on general expression evaluation.

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?

The description implies when to use it (in debugger contexts, globally or when paused) but does not explicitly state when to prefer alternatives or provide exclusions. It lacks guidance on when to use this instead of related tools like get_object_properties.

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

Install Server

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/escapeWu/chrome-agent-bridge'

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