Skip to main content
Glama
SaloQT

imgui-mcp

by SaloQT

imgui_window_control

Adjust window properties including position, size, collapsed state, focus, background transparency, and scroll position to manage Dear ImGui UI layouts in real time.

Instructions

Control a window's properties: position, size, collapsed state, focus, background alpha, or scroll position.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesWindow identifier
valueNoValue for the action: [x,y] for set_pos/set_size, bool for set_collapsed/set_focus, float for set_bg_alpha, [x,y] for set_scroll
actionYesControl action to perform
Behavior2/5

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

No annotations are provided, so the description carries full behavioral burden. It describes what the tool controls but not any side effects: whether operations are reversible, whether collapsing affects focus, whether setting bg_alpha requires special conditions, whether scroll accepts normalized vs pixel coordinates, or what happens on invalid values. For a multi-action mutation tool, this is a significant gap.

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 description is a single compact sentence that efficiently enumerates all six supported actions. There is no wasted text or repetition of schema information. It's appropriately sized for a multi-action tool, though slightly dense in its list form.

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?

With no output schema and no annotations, the description must carry more weight. The tool has 6 distinct actions with heterogeneous value types, making it moderately complex. The description doesn't cover edge cases, coordinate conventions, numeric ranges, or what happens if the window id doesn't exist. For a multi-mode mutation tool with no structured context, this is insufficiently complete.

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 coverage is 100%, so all three parameters are documented in the input schema. The description adds the 'value' field semantics by mapping action types to expected value formats ([x,y] pairs, bool, float), which is genuinely useful beyond the schema. However, it doesn't clarify coordinate systems (window-local vs screen), alpha range (0-1 vs 0-255), or scroll units. Baseline 3 is appropriate since schema covers parameter names/types.

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 states a specific verb ('Control') and lists the exact resource (window properties) with enumerated domains (position, size, collapsed state, focus, background alpha, scroll position). It clearly distinguishes from sibling tools like imgui_move_window or imgui_resize_window by covering all window property controls in one tool, though it doesn't explicitly differentiate itself from those specific siblings.

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?

The description provides no guidance on when to use this tool versus alternatives like imgui_move_window, imgui_resize_window, or imgui_set_window_visibility. It doesn't mention prerequisites (e.g., window must exist), exclusion cases, or when multi-property control is preferred over single-purpose siblings. No when/when-not guidance is given.

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/SaloQT/imgui-mcp'

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