Skip to main content
Glama

runtime_evaluate

Execute JavaScript code in the page context to automate form filling, trigger login events, or perform dynamic analysis for reverse engineering.

Instructions

在页面上下文中执行JavaScript代码(可用于填写表单、触发登录等)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expressionYes要执行的JS代码
awaitPromiseNo是否等待Promise完成,默认false
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. It only states that code executes in the page context but fails to mention whether execution is synchronous, what side effects are possible (e.g., navigation), error handling, or the effect of the awaitPromise parameter.

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 a single, concise sentence with a parenthetical example. It is front-loaded with the core action and efficiently conveys purpose without unnecessary words.

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?

For a tool that executes arbitrary JavaScript—a potentially complex operation—the description lacks completeness. It does not specify return values, error behavior, or side effects, leaving the agent without enough context to use it safely, especially given no output schema.

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 100% with inline descriptions for both parameters. The tool description adds no additional meaning beyond the schema, meeting the baseline expectation for a tool with complete schema documentation.

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 verb: execute JavaScript code in the page context. It provides concrete usage examples (form filling, login triggering) that help distinguish it from sibling tools like runtime_call_function or runtime_get_global_vars.

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

Usage Guidelines3/5

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

The description implies usage through examples (form filling, login), but does not explicitly state when not to use this tool or suggest alternatives among the many sibling tools. Missing explicit guidance on when to prefer runtime_call_function or other tools.

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/jenn619/JS-reverse-mcp'

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