Skip to main content
Glama
q35888

agentic-browser-mcp

by q35888

browser_eval

Execute JavaScript expressions in the browser page to access DOM, storage, or make requests, returning the result.

Instructions

在页面执行 JS 表达式(=F12 控制台输入,如 document.title / JSON.stringify({...}) / 1+1 / location.href),返回结果。传表达式,不是箭头函数。可读 DOM/storage/发请求。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes要执行的 JS 表达式/语句
Behavior4/5

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

With no annotations, the description carries full disclosure burden. It transparently notes that the tool can read DOM, storage, and send requests, which hints at side effects. However, it does not explicitly state that evaluation can modify page state or cause side effects beyond those mentioned.

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 a single, well-structured sentence with examples and a key caveat. Every phrase adds value, no wasted words, and critical information is front-loaded.

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?

The description explains what the tool does and its capabilities, but lacks details on the return format (type, serialization) and error handling. Given no output schema, this omission reduces completeness for an arbitrary-JS-execution tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with a brief parameter description. The tool description adds meaningful context: examples of valid expressions, warning against arrow functions, and scope (read DOM/storage/requests), which goes beyond the schema's 'JS expression/statement'.

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 that the tool executes JS expressions on the page and returns the result, with specific examples (e.g., document.title, 1+1). It distinguishes from arrow functions and lists capabilities (read DOM/storage/send requests), differentiating it from sibling tools like browser_click or browser_navigate.

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 implicitly indicates use for evaluating JS, but lacks explicit guidance on when to use this tool versus alternatives (e.g., browser_snapshot for page state). It warns against arrow functions but does not specify when not to use it or provide context for preferred scenarios.

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/q35888/agentic-browser-mcp'

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