Skip to main content
Glama

repl

Run Playwright-style JavaScript in the user's logged-in browser to read pages or act on sites, returning console output and screenshots. Each call requires one-time human approval via the gateway.

Instructions

Run Playwright-style JavaScript in the logged-in Aside browser and return console output and screenshots. Each call needs one-time human approval via the gateway (error -32010 with an approval_id until approved). Use for reading pages or acting on sites the user is logged into; never for payments, sends or deletes without explicit user instruction.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "title": "<title>",
      "code": "<code>"
    },
    "name": "repl"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
titleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden well: it discloses the one-time human approval gate per call, the specific failure mode (-32010 plus approval_id to retry with), what is returned, and a destructive-action policy. It still omits whether execution state persists across calls, which tab/page it targets, and any timeout behavior.

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?

Three sentences, each doing distinct work: capability plus return payload, then the approval mechanism with its error code, then the safety policy. The most decision-critical information (what it does) is front-loaded and nothing is padding.

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?

No output schema and no annotations, so the description must self-describe, and it does cover return values, the approval handshake, and risk limits. Remaining gaps are the meaning of the 'title' parameter and any execution-environment constraints such as timeouts or tab selection.

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 coverage is 0%, so the description must compensate for both parameters. It clarifies that 'code' is Playwright-style JavaScript and implicitly what the browser context is, but 'title' is never explained, leaving half the parameters undocumented.

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?

States a specific verb and resource ('Run Playwright-style JavaScript in the logged-in Aside browser') and adds the return payload (console output and screenshots), which is more than a restatement of the name. It does not explicitly distinguish itself from the aside_job_* siblings (e.g., whether this is synchronous versus job-based), so it stops short of a 5.

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?

Gives an explicit positive condition ('reading pages or acting on sites the user is logged into') and explicit exclusions ('never for payments, sends or deletes without explicit user instruction'). It never names an alternative tool, but the sibling set is mostly job-polling helpers rather than substitutes, so the gap is minor.

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