Skip to main content
Glama
media-preview
by JustBipin

Open Native Overlay Modal

open_modal

Launch a frameless, translucent desktop modal outside the chat iframe to preview local images or videos from provided paths.

Instructions

App-only helper to launch a frameless translucent desktop modal outside the chat iframe.

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": {
      "mode": "<mode>",
      "paths": "<paths>"
    },
    "name": "open_modal"
  }
}

Input Schema

NameRequiredDescriptionDefault
loopNo
modeYes
pathsYes
startTimeNo
startIndexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose genuine behavioral traits: the modal is frameless, translucent, rendered as a native desktop overlay, and lives outside the chat iframe. Beyond that it is silent on whether the call blocks, what happens to an already-open modal, permissions, or any return value, so significant behavioral gaps remain.

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?

A single front-loaded sentence with no filler, and the environment constraint is placed early. It is efficient, though its brevity comes at the cost of the detail other dimensions penalize.

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 with five undocumented parameters, no annotations, and no output schema, the description is too thin. An agent can guess it opens a viewer but cannot determine what the numeric timing/index parameters do or what to expect after the call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, so the description must compensate and it does not. Nothing is said about 'loop', 'startTime', 'startIndex', or the shape and meaning of 'paths' and 'mode'; the one informative hint is that the target is a visual modal, which only loosely implies the mode enum.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

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

It states a concrete verb and object ('launch a frameless translucent desktop modal') plus a scope constraint ('outside the chat iframe'), so the basic action is graspable. However, it never connects that action to the media-oriented parameters (image/video mode, paths) and gives no hint of how it differs from siblings like preview_media, leaving the real function ambiguous.

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?

'App-only helper' is the only usage signal, telling the agent it is gated to the desktop app environment, which is worth something. There is no guidance on when to open a modal rather than call preview_media or resolve_media, and no prerequisites or exclusions are stated.

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

Deploy Server

Other Tools