Skip to main content
Glama

modo_close_dialog

Destructive

Close a Modo dialog externally by canceling it safely by default, or pass an exact button label and optional window index to press a chosen option.

Instructions

Close a dialog in Modo from outside Modo. Without button it cancels (Escape on macOS, Close on Windows) -- the safe answer in nearly every dialog. With button (its exact label from modo_list_dialogs) it presses that button. Never press a button that discards work (Don't Save, Discard, Delete ...) without asking the user. window: the index from modo_list_dialogs; default the frontmost dialog.

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": "modo_close_dialog"
  }
}

Input Schema

NameRequiredDescriptionDefault
buttonNo
windowNo
instanceNoThis chat's Modo instance token (modo-xxxxxx) from modo_use_instance or modo_launch_instance. Pass it on every call once you have one; leave empty only while a single chat works with Modo.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description goes further by explaining the concrete platform behavior of the default path (Escape on macOS, Close on Windows) and spelling out which button labels destroy work. It stops short of saying what happens to a command or job that was blocked on the dialog, which is the one behavior an agent might still need.

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 default behavior and its safety rationale are front-loaded, and each clause adds new information. It is dense to the point of reading as a single run-on block, which slightly hurts scanability but not meaning.

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 three-parameter, destructive, no-required-args tool with an output schema, the description covers selection of dialog, selection of button, and the safety gate. The main omission is the effect on whatever operation the dialog was interrupting.

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 only 33%, so the description must carry weight, and it does: button is defined as the exact label sourced from modo_list_dialogs, and window is defined as the index from modo_list_dialogs with the frontmost dialog as default. The instance parameter is covered by the schema itself.

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?

"Close a dialog in Modo from outside Modo" states a specific verb (close), resource (dialog), and scope (from outside the application), which no sibling tool covers. It also immediately distinguishes the two operating modes (cancel vs. press a named button).

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?

Explicitly says the no-button path is "the safe answer in nearly every dialog" and that the button path requires an exact label obtained from modo_list_dialogs, naming the sibling that supplies that input. It also sets an affirmative when-not condition: never press a work-discarding button without asking the user.

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