Skip to main content
Glama
ironessi

browser-firefox-mcp

by ironessi

js_eval

Executes JavaScript expressions in the Firefox browser and returns the result, enabling client-side testing and debugging.

Instructions

Execute JavaScript expression and return result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expressionYes
Behavior2/5

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

With no annotations, the description carries full responsibility for disclosing side effects. It mentions returning a result but does not warn about potential destructive side effects of executing arbitrary JS, the execution context (page vs. browser), or any security implications. This is a significant gap for a tool that can run 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.

Conciseness5/5

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

A single, front-loaded sentence with no filler words. It efficiently communicates the core action and result, earning the highest score for conciseness.

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's power (arbitrary JS execution), the description is too sparse. It omits return value format, error handling, execution context, and safety warnings. Even with only one parameter, this is insufficient for an agent to use it safely and effectively.

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 description coverage is 0%, so the description must compensate. However, it merely repeats the parameter name ('expression') without explaining what constitutes a valid expression, how results are returned, or whether it is a full script or a single expression. It adds minimal semantic value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's action ('Execute JavaScript expression') and outcome ('return result'). It is specific enough to distinguish from the general browser automation siblings like navigate or click, though it does not differentiate from inject_payload or inject_xss_payload which also execute scripts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives like inject_payload or inject_xss_payload, nor any prerequisites, context, or exclusions. The description only states what it does, not when it is appropriate.

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/ironessi/browser-firefox-mcp'

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