Skip to main content
Glama

gretl_run_script

Execute Gretl/Hansl scripts using gretlcli, with optional GUI display, to automate econometric analysis and model estimation.

Instructions

Run any Gretl/Hansl script through gretlcli. By default this also requires opening the same workflow in the visible Gretl GUI.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptYesGretl/Hansl script to run.
safeModeNoWhen true, blocks shell-like commands and absolute file writes.
requireGuiNoRequire the visible Gretl GUI to open for this workflow. Defaults to true outside CI.
gretlCliPathNoOptional explicit path to gretlcli or gretlcli.exe.
gretlGuiPathNoOptional explicit path to gretl or gretl.exe.
keepWorkspaceNoKeep the run workspace so generated artifacts remain available.
workspaceRootNoOptional directory where run workspaces are created.
displayInGretlNoOpen a visible Gretl GUI script window for this run. Defaults to true outside CI.
guiNewInstanceNoOpen a new Gretl GUI instance for the visible script.
timeoutSecondsNoMaximum runtime in seconds. Defaults to 30, max 300.
Behavior2/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It mentions the GUI requirement and safeMode parameter blocks shell commands, but it fails to explain what happens on execution (e.g., return value, error handling, side effects) or the implications of the many optional parameters.

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 description is extremely concise with two sentences and no redundant information. It front-loads the core action, but could be improved by including essential behavioral details without sacrificing conciseness.

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?

Given the tool's complexity (10 parameters, no output schema, script execution with GUI dependencies), the description is too sparse. It omits critical context about expected outputs, error states, and the interplay between parameters like safeMode and requireGui.

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 descriptions for all 10 parameters, so the schema already documents parameter meanings. The description adds only the context of running via gretlcli and the default GUI requirement, which provides marginal extra value beyond the schema.

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?

The description clearly states the action ('Run any Gretl/Hansl script') and resource ('through gretlcli'), which is specific and actionable. However, it does not differentiate from sibling tools like gretl_run_commands or gretl_run_script_file, which also involve running scripts or commands.

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

Usage Guidelines2/5

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

The description mentions a default behavior (requiring the GUI) but provides no explicit guidance on when to use this tool versus alternatives. There is no mention of prerequisites, limitations, or scenarios where other tools would be more appropriate.

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/OndrejLapes/GretlMCP'

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