Skip to main content
Glama

godot_run_project

Launch a Godot project from its main scene, supporting headless mode and custom executable paths for development testing.

Instructions

Run a Godot project using its current main scene.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathYesPath to the Godot project directory or its project.godot file.
headlessNoWhether to run the project in headless mode.
godot_executableNoOptional explicit path to the Godot executable or .app bundle.

Implementation Reference

  • The handler function `run_project` implements the logic for running the Godot project. It validates the project path, resolves the Godot executable, constructs the command, and launches the process.
    def run_project(
        self,
        project_path: str,
        godot_executable: str | None = None,
        headless: bool = False,
    ) -> dict[str, Any]:
        project_dir = ensure_project_path(project_path)
        executable, version = resolve_godot_executable(godot_executable)
    
        command = [str(executable), "--path", str(project_dir)]
        if headless:
            command.append("--headless")
    
        launched = _launch_process(command, cwd=project_dir, log_name="run-project")
        return {
            "project_path": str(project_dir),
            "pid": launched.pid,
            "command": launched.command,
            "log_path": launched.log_path,
            "headless": headless,
            "godot_version": version,
        }
  • The tool `godot_run_project` is registered here with its input schema and handler mapping to `controller.run_project`.
        name="godot_run_project",
        description="Run a Godot project using its current main scene.",
        input_schema={
            "type": "object",
            "properties": {
                "project_path": {
                    "type": "string",
                    "description": "Path to the Godot project directory or its project.godot file.",
                },
                "headless": {
                    "type": "boolean",
                    "description": "Whether to run the project in headless mode.",
                    "default": False,
                },
                "godot_executable": {
                    "type": "string",
                    "description": "Optional explicit path to the Godot executable or .app bundle.",
                },
            },
            "required": ["project_path"],
            "additionalProperties": False,
        },
        handler=lambda args: self.controller.run_project(
            project_path=args["project_path"],
            headless=bool(args.get("headless", False)),
            godot_executable=args.get("godot_executable"),
        ),
    ),
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states the tool runs a project but doesn't disclose behavioral traits like whether it blocks until completion, what happens on errors, if it requires Godot installation, or what output/feedback is provided. 'Run' implies execution but lacks operational details.

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?

Single sentence, zero waste. Front-loaded with the core action, appropriately sized for a straightforward tool. Every word earns its place without redundancy.

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?

For a tool that executes projects (potentially complex with runtime behavior), no annotations, no output schema, and minimal description leave significant gaps. It doesn't explain what 'run' entails operationally, success/failure indicators, or integration with other tools like 'godot_run_with_capture'. Incomplete for execution context.

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 description coverage is 100%, so the schema fully documents all parameters. The description adds no additional meaning about parameters beyond what's in the schema, such as explaining 'headless' mode implications or 'project_path' validation. Baseline 3 is appropriate when schema does the heavy lifting.

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') and target ('a Godot project'), specifying it uses the 'current main scene'. It distinguishes from 'godot_run_scene' which likely runs a specific scene file, but doesn't explicitly mention this sibling differentiation.

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?

No guidance on when to use this tool versus alternatives like 'godot_run_scene' or 'godot_start_project'. The description implies usage for running projects with their configured main scene, but provides no explicit context, prerequisites, or exclusions.

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/MhrnMhrn/godot-mcp'

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