Skip to main content
Glama
jamesmurdza

Daytona Playwright MCP Server

by jamesmurdza

browser_evaluate

Execute JavaScript code directly in a web page's context to retrieve data like page titles, URLs, element counts, or storage contents for web automation and testing.

Instructions

Execute JavaScript in the page context and return the result.

Examples:

  • "document.title"

  • "window.location.href"

  • "document.querySelectorAll('a').length"

  • "JSON.stringify(localStorage)"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptYesJavaScript code to execute in the page context

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries full burden but lacks behavioral details. It mentions execution 'in the page context' but doesn't specify security implications, error handling, performance impact, or whether it requires a loaded page. This is inadequate for a tool that executes arbitrary JavaScript.

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 front-loaded with the core purpose in the first sentence, followed by concise, relevant examples. Every sentence earns its place by clarifying usage without redundancy, making it efficient and well-structured.

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?

Given the tool's complexity (executing arbitrary JavaScript) and lack of annotations, the description is incomplete—it doesn't cover safety, errors, or dependencies. However, the presence of an output schema reduces the need to explain return values, and the schema covers parameters adequately.

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%, so the schema already documents the 'script' parameter fully. The description adds minimal value through examples that illustrate possible script content, but doesn't provide additional syntax, constraints, or best practices beyond what the schema states.

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 specific action ('Execute JavaScript in the page context') and the outcome ('return the result'), distinguishing it from sibling tools that perform navigation, interaction, or content extraction rather than script execution. The examples reinforce this purpose by showing typical JavaScript operations.

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 usage through examples (e.g., accessing document properties, querying elements), but does not explicitly state when to use this tool versus alternatives like browser_get_html or browser_get_text for content extraction. No guidance on prerequisites or exclusions is provided.

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/jamesmurdza/playwright-daytona-mcp-server'

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