Skip to main content
Glama

Nova Cast

Execute Script

execute_script
Destructive

Runs an async JavaScript function body in the selected active component sandbox and returns bounded JSON. Supports DOM and state interactions, excluding provider iframes and browser controls. Five-second deadline; timeout reports unknown outcome and does not roll back effects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptYes
componentIDYes
operationIDYes
controlTokenYes
expectedRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the write/irreversible profile is known. The description adds genuinely useful context beyond that: a five-second deadline and the fact that a timeout reports an unknown outcome without rolling back effects — a critical caveat for an agent deciding whether to retry.

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 tight clauses, front-loaded with the core action and followed immediately by scope and the timeout/rollback caveat. No filler sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, open-world execution tool with no output schema, the description covers behavior and safety caveats well but leaves all five parameters completely undocumented, which is a meaningful omission given the concurrency and token parameters involved.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description explains none of the five required parameters (script, componentID, operationID, expectedRevision, controlToken). expectedRevision in particular signals optimistic concurrency, and controlToken appears to be an auth credential, yet neither is clarified anywhere. The description does not compensate for the schema gap.

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: 'Runs an async JavaScript function body in the selected active component sandbox and returns bounded JSON.' This distinguishes it from read/write siblings like read_component and set_component_data, though it does not name a specific alternative tool.

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 scoping sentence ('Supports DOM and state interactions, excluding provider iframes and browser controls') implies when the tool is applicable, but there is no explicit when-to-use vs when-not-to-use guidance or named alternative among the many siblings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources