Skip to main content
Glama

Export presets: list, add, change, remove

godot_preset
Idempotent

Create, list, edit, or remove Godot export presets in export_presets.cfg without opening the editor; changes are dry-run unless write is true, then undoable.

Instructions

Edits export_presets.cfg without the editor. op list: the presets. op add: a preset for Windows Desktop, Linux, macOS, Web, Android or iOS with name, export_path, runnable, export_filter and include/exclude filters, plus options as key/value; Godot fills in the options you do not give when it loads the file. op set: change keys or options of a preset (unset removes them). op remove: a preset; the ones after it are renumbered, as Godot needs. Dry run by default; write: true writes, and godot_undo takes it back. To build with a preset use godot_export.

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": {
      "op": "<op>"
    },
    "name": "godot_preset"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYeswhat to do
setNoset: preset keys to change
nameNoadd: the preset's name (default: the platform)
pathNoproject folder, or a file or folder inside it (relative to the server's folder; default: the current project)
unsetNoset: keys to remove (options/<key> for an option)
writeNowrite the change (default false: show it)
presetNoset or remove: the preset's name or number
optionsNoadd or set: platform options, e.g. {"binary_format/embed_pck": true}
platformNoadd: the platform
runnableNoadd: the preset one-click deploy uses
export_pathNoadd: where the build goes, e.g. build/game.exe
export_filterNoadd: all_resources, scenes, resources, exclude or customized
exclude_filterNoadd: files to leave out
include_filterNoadd: extra files to include, e.g. *.json

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations it discloses two non-obvious behaviors: writes are gated behind write:true with a dry-run default, and removing a preset renumbers the ones after it. It also notes Godot fills in unspecified options on load, which prevents an agent from over-specifying. These are exactly the side effects annotations cannot convey.

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 op-by-op enumeration is front-loaded and dense but every clause carries information — no filler. The prose is slightly run-on in the add sentence where platform, name, and filters pile into one list, but nothing is wasted.

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 14-parameter mutation tool with no output schema, it covers the operation model, the write gate, option merging, and renumbering. It leaves the shape of the list result and how path applies per-op unstated, which the schema only partly covers.

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 100%, so the baseline is 3, but the description adds real meaning on top: options are key/value pairs that Godot completes when unspecified, unset removes keys (options/<key> for an option), and the platform/name/export_path/export_filter group is scoped to add. It doesn't explain path resolution or list's return shape, keeping it short of a 5.

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 opening sentence gives a specific verb and resource ("Edits export_presets.cfg") and then enumerates every operation — list, add, set, remove — with the fields each touches. An agent can distinguish this from godot_export, which the description explicitly routes building to.

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?

It names the alternative for the adjacent task ("To build with a preset use godot_export") and the recovery path ("godot_undo takes it back"), and states the dry-run default so the agent knows the tool is safe to call speculatively. The only minor gap is that it doesn't spell out when NOT to use it, but the editor-avoidance framing covers intent.

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