Skip to main content
Glama

run_script

Executes custom Stellarium scripting commands for advanced planetarium control, enabling low-level automation of views, time, and observer settings via code.

Instructions

Execute a Stellarium script command directly. This gives low-level access to Stellarium's scripting engine for advanced operations. See Stellarium scripting documentation for available commands.

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": {
      "code": "<code>"
    },
    "name": "run_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesStellarium Script code to execute (e.g. 'core.setObserverLocation(-19.73, -42.63, 300, 0, "My Location", "Earth")')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It discloses that this is low-level engine access, but says nothing about whether execution is blocking, how errors or timeouts surface, what the return value is, or the fact that arbitrary script code can mutate application state. For a tool that runs arbitrary code, that is a significant omission.

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?

Three short sentences with the core action front-loaded and no filler. The third sentence is essentially a pointer to external docs but is brief enough not to be wasteful.

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?

With no annotations and no output schema, the description should explain execution semantics, error behavior, and the relationship to run_script_file / get_script_status / stop_script. It covers none of these, leaving an agent unable to predict what a call returns or how to follow up.

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% and the single `code` parameter already carries a concrete example call, so the schema does the heavy lifting. The description adds no syntax constraints, quoting rules, or guidance on how much can be passed in one invocation, which is the baseline-3 outcome.

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?

"Execute a Stellarium script command directly" states a specific verb and resource, and the word "command" combined with "low-level access to Stellarium's scripting engine" hints at how it differs from a file-based sibling. It stops short of naming run_script_file explicitly, so the distinction is implied rather than stated.

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 frames usage as "advanced operations" and points the reader at external scripting documentation, which implies a context for use. It gives no explicit when-not guidance, no prerequisites, and no named alternative such as run_script_file or do_action.

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