Skip to main content
Glama

execute_js

Execute JavaScript in a Fiverr browser tab to inspect the DOM, intercept data, or automate page actions. Returns results asynchronously.

Instructions

Run arbitrary JavaScript in the MAIN world of a Fiverr browser tab and return the result. Use this to inspect the DOM, intercept data, or perform any action on the page. The code runs as the body of an async function so you can use await and return values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesJavaScript source to execute (body of an async function — use return to send data back)
urlNoFiverr page URL to navigate to first (default: current Fiverr tab)
reloadNoForce-reload the tab before executing (default false)
Behavior3/5

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

No annotations are provided, so the description carries the burden. It states the code runs in the MAIN world, as an async function, and returns results. It implies mutability ('perform any action'), but does not disclose potential side effects like triggering events, CSP restrictions, or error handling behavior. Adequate but not rich.

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 three sentences, front-loaded with action and purpose. Every sentence adds value: first states what it does, second lists use cases, third explains execution context. No redundancy or fluff.

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?

For a tool with 3 parameters, no output schema, and no annotations, the description covers purpose, usage, and execution context. It is missing details about the format of returned data when errors occur, and lacks mention of page mutation warnings. Still, it feels mostly complete for a scripting tool.

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%. The description adds minor context for the 'code' parameter (async function body, use return) but does not add significant meaning beyond the schema for 'url' or 'reload'. Baseline 3 is appropriate as the schema already documents parameters well.

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 arbitrary JavaScript in the MAIN world of a Fiverr browser tab and returns the result. It lists use cases (inspect DOM, intercept data, perform any action) and provides technical context (async function body). This strongly distinguishes it from sibling tools which are focused on gig/order management.

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

Usage Guidelines4/5

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

The description explicitly says to use this for inspecting the DOM, intercepting data, or performing any action on the page, giving clear when-to-use guidance. It does not explicitly mention when not to use or alternative tools, but the context of sibling tools makes alternatives obvious. The gap is minimal.

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/marwankous/fiverr-mcp'

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