Skip to main content
Glama

run_script_file

Execute a bundled Stellarium script by filename for automated planetarium sequences. Check available scripts first and confirm no other script is running.

Instructions

Run one of the script files bundled with Stellarium, by filename. Use list_scripts to see what is available. To execute your own code instead, use run_script. Fails if another script is already running — check get_script_status first.

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": {
      "id": "<id>"
    },
    "name": "run_script_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesScript filename as returned by list_scripts (e.g. 'solar_eclipse_2019.ssc')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose real behavior: execution is exclusive and the call fails if another script is already running, plus a suggested pre-check via get_script_status. It stops short of saying whether the call blocks until the script finishes or returns immediately, and whether the script can be stopped mid-run.

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 short sentences, front-loaded with the action, then discovery, then the alternative, then the precondition. Every sentence conveys new decision-relevant information with no filler.

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 single-parameter tool with no output schema, the definition covers inputs, discovery, alternatives, and the key failure precondition. The remaining gap is execution semantics—whether the call is synchronous and what it returns—which matters more here precisely because no output schema exists.

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 schema already explains that 'id' is the filename returned by list_scripts with an example. The description reinforces this ('by filename', 'use list_scripts') but adds no format or validation detail beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource with scope: 'Run one of the script files bundled with Stellarium, by filename.' It immediately distinguishes itself from run_script ('execute your own code instead') and from list_scripts (the discovery tool), so an agent can route correctly without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (bundled script files, referenced by filename from list_scripts), names the alternative tool and the condition that selects it (run_script for your own code), and states a precondition to check (get_script_status). Nothing is left to inference.

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