execute_js
Run JavaScript code in the browser to automate tasks or retrieve data from web pages.
Instructions
Execute JavaScript on the page
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes |
Run JavaScript code in the browser to automate tasks or retrieve data from web pages.
Execute JavaScript on the page
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of behavioral disclosure, but it offers minimal information. It does not specify whether the script runs in a sandboxed context, what the return value is, or potential side effects like page mutation. This lack of detail is critical for a tool that executes 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.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is very concise at 5 words, which is efficient but borderline under-specified. It lacks structure and could include more detail without losing brevity, such as mentioning execution context or return behavior.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
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 the absence of output schema and annotations, the description is severely incomplete. It omits critical context like security implications, scope of execution, and whether the page state is altered, which are essential for safe and correct usage.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0% coverage (no parameter descriptions), and the tool description adds no meaning to the 'script' parameter. It fails to explain the expected format (e.g., JavaScript syntax, single-line vs. multi-line, support for async) or any constraints, leaving the agent to guess.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action (execute) and the resource (JavaScript on the page), making the purpose immediately understandable. However, it does not explicitly differentiate from similar sibling tools like 'run_script', which reduces clarity slightly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No usage guidelines are provided. The description does not indicate when to use this tool versus alternatives, such as 'run_script' for stored scripts or 'read_content' for static content, leaving the agent without context for appropriate selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mingye-Lu/AgenticCrawler'
If you have feedback or need assistance with the MCP directory API, please join our Discord server