Skip to main content
Glama
kamkozlowski

dev-browser-mcp

by kamkozlowski

Evaluate JavaScript

dev_browser_evaluate

Run JavaScript code directly within a web page to interact with the DOM, extract data, or trigger page actions. Execute arbitrary browser-side expressions or statements.

Instructions

Evaluate JavaScript in the page. Pass a browser-side expression or statements.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesJavaScript to eval in the page context.
browserNoNamed daemon-managed browser instance. Default: DEV_BROWSER_BROWSER or 'default'.
connectNoAttach to a running Chrome instance. true/auto-discover, or a CDP URL like http://localhost:9222.
headlessNoLaunch daemon Chromium without a window.
pageNameNoNamed page to reuse across calls. Default: "main".
timeoutSecondsNoScript execution timeout in seconds. Default: 30.
ignoreHttpsErrorsNoIgnore HTTPS certificate errors for daemon-launched Chromium.
Behavior2/5

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

No annotations are provided, so the description carries full burden. It only mentions 'evaluate' without disclosing side effects (e.g., DOM mutation, global state changes), error handling, return value format, or that execution is synchronous in the page context. The phrase 'browser-side' hints at the execution context but is insufficient for a tool that runs arbitrary code.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no wasted words, but it is also under-specified. It is not verbose, but it could be more informative without increasing length significantly. The front-loading is present (verb first), but the brevity sacrifices helpfulness.

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 7 parameters, no output schema, and no annotations, the description is too minimal. It does not explain what the tool returns (evaluated result), how promises are handled, error scenarios, or execution context details. The schema covers parameter descriptions, but the overall behavioral context is lacking for a tool executing arbitrary code.

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% (all 7 parameters have descriptions in the input schema). The tool description itself adds no additional parameter meaning beyond the schema; it merely restates the general purpose. Baseline 3 is appropriate since the schema carries the parameter documentation.

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 verb 'Evaluate' and the resource 'JavaScript in the page', and specifies 'browser-side expression or statements'. This uniquely identifies the tool among siblings like dev_browser_click, dev_browser_fill, etc., which do not execute arbitrary JS.

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 the tool is for executing JavaScript in the page, but it does not explicitly state when to use it versus alternatives (e.g., dev_browser_click for specific actions). No when-not-to-use or exclusion criteria are mentioned; the guidance is merely implied by the verb.

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/kamkozlowski/dev-browser-mcp'

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