Skip to main content
Glama

get_execute_js_result

Retrieve or wait for the result of a JavaScript execution or bridge operation using its operation ID, including late replies and large data handling.

Instructions

Read or wait for an operation_id from execute_js or another timed-out bridge command, including open_new_tab's nested reconciliation.bridge_operation.operation_id. The outer tab-creation ID uses open_new_tab recovery. Call from the submitting MCP session; this tool never replays operations. timeout is 0-120 seconds. Completed results are repeatable for up to 10 minutes and 512 records, with earlier capacity eviction. Unknown/expired does not prove non-execution. After reservation expiry, the first valid terminal reply is late_result (success,data), with late_reply_age in seconds; unknown and retry_safe=false remain. Late replies neither renew retention nor reserve targets again. Known read-only wait, inventory and creation-status probes can release on timeout; reservation_held describes that probe, not a prior mutation. Large or unpaired-UTF-16 values use execute_js result_file metadata or fallback result_json, with scope=js-value. Late descriptors are inside late_result with data=null. JSON-decode the path only when result_file_encoding=json, then parse the UTF-8 file or result_json once as JSON. Export failure preserves the complete value and original retry verdict.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNo
operation_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.4

TDQS

A4.4/5.0
Behavior5/5

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

With readOnlyHint=false, openWorldHint=true, and no idempotency guarantee, the description must carry the behavioral burden, and it delivers extensively: timeout bounds (0-120 seconds), retention limits (10 minutes, 512 records, capacity eviction), unknown/expired semantics, late_result with late_reply_age, reservation/release behavior, and encoding rules. None of this contradicts the annotations; the reservation language actually explains why the tool is not purely read-only.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is a single unbroken ~200-word wall of dense, multi-clause sentences filled with jargon ('reservation_held describes that probe, not a prior mutation'). It is properly front-loaded — the purpose leads — and every sentence carries real facts, but the lack of any structural breaks makes the critical guidance costly for an agent to parse.

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?

Given the tool's high complexity (async reservations, retries, late results, unpaired-UTF-16 handling, export failure) and the presence of an output schema, the description covers nearly everything an agent needs: when to call, timeout range, retention, retry semantics, late-result structure, and decode instructions. What keeps it from a 5 is pure structure, not missing information.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It adds a concrete meaning to timeout ('timeout is 0-120 seconds') and clarifies that operation_id originates from execute_js or bridge commands, including the nested-vs-outer distinction. It doesn't state the operation_id format, but for a zero-coverage schema this is solid compensation.

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 opening phrase names a specific verb-resource pair — 'Read or wait for an operation_id' — and scopes it to execute_js or other timed-out bridge commands, which separates it from the sibling list at a glance. It even carves out the nested open_new_tab reconciliation case, so an agent knows exactly what this tool is for.

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?

There is explicit routing guidance: 'Call from the submitting MCP session' plus the exclusion 'The outer tab-creation ID uses open_new_tab recovery,' which tells the agent when not to use this tool and names the alternative. It doesn't enumerate all other alternatives, but it does resolve the two most likely confusion points (execute_js results and open_new_tab nested vs. outer IDs).

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