Skip to main content
Glama

Open in the editor

open_in_editor
Destructive

Put a built version into the user's editor: in place of the open project, as a new one, or added as a group. Undoable.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "open_in_editor"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoreplace (default): the version becomes the open project — one undo step, its name and file kept (an untitled project never saved takes the version's name), marked unsaved; refused when the project changed in the editor since get_project, holds layers the spec cannot express, or does not rebuild exactly from its spec. new: a project of its own in place of the open one — the editor asks the user to save unsaved work first. add: added to the open project as a group, one undo step.
nameNoExplicit project name (or group name with add). Without this, replace preserves a custom project name.
buildNoWhich successful build of this session; the latest by default.
rebaseNoWith replace, reapply a patch-based build to the current project. Keeps independent artist edits, reports conflicting fields before writing, and creates one undo step.
ifUnsavedNoWith new, when the open project has unsaved changes. ask (default): the editor asks the user Save / Don't Save / Cancel, and the call waits for the answer. cancel: refused at once, nothing changes (save_to_files open:true keeps the user's work first). discard: opens without asking — only when the open project is this session's own build, unchanged since it was opened; refused otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / rebase
      Added value: +{
      +  "description": "With replace, reapply a patch-based build to the current project. Keeps independent artist edits, reports conflicting fields before writing, and creates one undo step.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations flag destructiveHint=true without saying how bad that is; the description's 'Undoable' corrects the impression that the open project is lost, which is real value beyond the structured fields. The per-mode side effects (unsaved marker, save prompt, refusals) live in the schema rather than the description.

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?

Two short sentences, front-loaded with the action and the mode enumeration, then the undo guarantee as a separate fragment. No filler and nothing redundant with the title.

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 five-parameter mutation with a fully documented schema and no output schema, the description covers purpose, mode space, and recoverability. It omits what a successful call leaves behind (project state returned, how the version is identified afterwards), a minor gap.

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% and the enum/conditional semantics of mode, rebase, and ifUnsaved are already documented there in depth. The description only restates the mode list at a high level and adds no syntax or interaction 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Put a built version into the user's editor') and enumerates the three placement modes, which separates it from open_project (opening files) and build_effect (producing builds). It stops short of explicitly naming a sibling to prefer, so 4 rather than 5.

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 three modes ('replace', 'new', 'add') are sketched in the description and fully elaborated in the schema, so mode selection is covered. There is no explicit when-to-use/when-not guidance against open_project or save_to_files at the description level, leaving an agent to infer the boundary.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources