Skip to main content
Glama

gui_run

Automates a Proteus project session by opening it in a sandbox, executing ordered GUI actions, capturing screenshots, and shutting down all processes before returning.

Instructions

Open a Proteus project in the sandbox, perform actions, return the screenshots, then shut EVERYTHING down (Wine, Xvfb, Proteus) before the call returns: nothing keeps running between requests. Startup costs 15-40 s per call (raise load_wait for big designs), so put all steps of a task into one call. actions (in order), each a dict: {"do":"wait","s":5} | {"do":"click","x":1200,"y":560} | {"do":"click_design","x":-1900,"y":-1000} (thou; toggles a LOGICSTATE/DIP switch) {"do":"key","keys":"F12"} | {"do":"type","text":"..."} | {"do":"simulate","mode":"graph|animated","graph":2,"wait":15} {"do":"view_graph","index":0,"name":"g"} (double-click the graph title bar: full-size Proteus graph; picture returned) {"do":"export_graph_data","name":"x"} (Proteus writes the selected graph's data to exchange/x.dat) | {"do":"close_graph"} | {"do":"windows"} | {"do":"dismiss","keys":"Return"} (close an error/recovery dialog) | {"do":"screenshot","name":"shot","trim":true,"crop":[x0,y0,x1,y1]} Screen is 1920x1080. A screenshot is always appended at the end.

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": {
      "project": "<project>",
      "actions": "<actions>"
    },
    "name": "gui_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionsYes
projectYes
load_waitNo
max_secondsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses that Wine, Xvfb and Proteus are all torn down before return, that nothing persists between requests, that startup costs 15-40 s, and that a screenshot is always appended. These are exactly the stateful side effects an agent could not otherwise predict.

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

Conciseness4/5

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

The lifecycle constraint and cost warning are front-loaded before the action catalog, which is the right ordering. The pipe-separated action list is dense and telegraphic, but every entry conveys a distinct capability; the only waste is the parenthetical clutter around click_design and view_graph.

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 GUI-automation tool with four parameters, no annotations, and a present output schema, the definition covers the essential mechanics: environment lifecycle, action vocabulary, timing expectations, and guaranteed screenshot return. The untuned max_seconds parameter and any failure/timeout behavior are the remaining gaps.

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 coverage is 0%, so the description must compensate, and it largely does: every action verb gets a shape or example, coordinate space is clarified for click_design (thousandths, toggles a LOGICSTATE/DIP switch), the 1920x1080 screen bound is stated, and load_wait is explained with a tuning rule. Only max_seconds and the project parameter's expected form are left undocumented.

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 gives a specific verb sequence and resource: open a Proteus project in the sandbox, execute an ordered action list, return screenshots, and tear everything down before returning. It is immediately distinguishable from non-GUI siblings such as simulate_project_nogui or prospice_run, because it names the GUI substrates (Wine, Xvfb, Proteus).

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?

Strong batching guidance: 'Startup costs 15-40 s per call ... so put all steps of a task into one call' tells the agent exactly how to structure usage, and 'raise load_wait for big designs' gives a tuning heuristic. It stops short of naming when to prefer a headless sibling (simulate_project_nogui) over this GUI path, so the alternative-selection rule must be inferred.

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