Skip to main content
Glama
chandu-cpz

Camoufox Playwright MCP

by chandu-cpz

Run Playwright code (unsafe)

browser_run_code_unsafe
Destructive

Run Python Playwright scripts with full server access for complete control over browser automation tasks.

Instructions

Run a Python Playwright code snippet. Unsafe: executes arbitrary Python in the Playwright server process with normal builtins/imports and is RCE-equivalent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoPython Playwright code to execute. It may define an async function or provide statements that run with page in scope.
_metaNo
filenameNoLoad code from the specified file. If both code and filename are provided, code will be ignored.
Behavior5/5

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

The description explicitly states 'Unsafe: executes arbitrary Python... RCE-equivalent', which goes well beyond the annotations (destructiveHint: true) to explain the severity and attack surface. No contradiction with annotations.

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

Conciseness4/5

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

The description is two sentences, front-loading the core action then the critical safety caveat. Efficient and clear, with no wasted words.

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?

Given the presence of annotations and schema that handle parameters, the description adequately covers purpose and safety. However, lacking output schema or return value info, and sibling differentiation is missing, but overall complete for the tool's risk profile.

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 67%, so the schema partially documents parameters. The description adds no parameter-specific details; it only repeats 'Python Playwright code' from the schema's code parameter description. Minimal added value.

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 runs Python Playwright code snippets and is uniquely identified as 'unsafe'. The verb 'run' plus 'Playwright code' makes the resource and action unambiguous.

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 does not explicitly state when to use this tool over siblings like browser_evaluate. The safety warning implies restricted use cases but lacks explicit context or exclusions.

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/chandu-cpz/camoufox-playwright-mcp'

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