Skip to main content
Glama
DB-25

arc-control-mcp

Execute JavaScript

execute_javascript
Destructive

Run JavaScript in an Arc browser tab and get the evaluated result, whether as a bare expression or a statement body with return. Includes helper shortcuts for common DOM operations.

Instructions

Run JavaScript in a tab and return the result. A bare expression, or a statement body that uses return, both work. The helper library is available as A (A.all, A.one, A.click, A.setValue, A.describe, A.visible).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesJavaScript to evaluate. An expression returns its value; a statement body returns whatever it returns, or null.
tab_idNoArc tab id from list_tabs. Omit to use this agent's current tab, falling back to whatever tab is active in Arc.
Install Server

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, openWorldHint=true, and readOnlyHint=false, so the description is not the sole safety signal. It adds value by explaining that results are returned and that both expressions and return-based statements work, but it does not elaborate on side-effect risks of 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.

Conciseness4/5

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

Three short, front-loaded sentences with no filler. The first sentence states the core behavior; the second and third add return semantics and helper availability. Minor redundancy with the schema's code description keeps it from a 5.

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?

The description plus schema covers how to provide code, how to choose a tab, and helper availability, which is enough to invoke the tool. No output schema exists, but the return mechanics are described. It does not address error/async behavior or the scope of side effects, though annotations carry part of that burden.

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% for both code and tab_id, so the baseline is already strong. The description goes beyond the schema by naming the available helper library A and its methods (A.all, A.one, A.click, etc.), which materially helps an agent construct valid code.

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 opening sentence names a specific action and resource: 'Run JavaScript in a tab and return the result.' This clearly distinguishes it from sibling tools such as get_page_content and query_elements, and the following sentences clarify evaluation semantics.

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?

The description gives no explicit guidance about when to choose execute_javascript over sibling tools, no exclusions, and no prerequisites. The helper-library note and return behaviors are operational details, not selection guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/DB-25/arc-control-mcp'

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