Skip to main content
Glama
SaloQT

imgui-mcp

by SaloQT

imgui_undo

Reverse the last destructive change to your Dear ImGui UI, restoring the previous state while preserving the undone action for potential redo.

Instructions

Undo the last destructive operation (add/remove/update widget, remove window, clear all). The undone state is pushed to the redo stack.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the mutation behavior (undoes destructive changes) and mentions the redo stack push, which is useful. However, it doesn't state whether undo is persistent across sessions, whether there's a history depth limit, or what happens if there's nothing to undo — gaps that would matter for an agent managing UI state.

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?

Two sentences, each earning its place. The first states the core purpose and enumerates scope; the second discloses the side effect (redo stack push). There is no wasted text. Slightly more detail could be added but the structure is efficient and front-loaded.

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 zero-parameter tool with no output schema and a clear side effect, the description is reasonably complete. It names the affected resources (destructive operations) and the redo stack behavior. It could benefit from clarifying edge cases (empty undo stack) but given the simplicity of the tool, this is largely sufficient.

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?

The tool has zero parameters and 100% schema coverage (empty schema), so there are no parameter semantics to document. With 0 params, the baseline is 4 per the rubric, and the description adds contextual meaning about what gets undone. This is appropriate.

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 clearly states the verb+resource: 'Undo the last destructive operation' with explicit enumeration of what counts as destructive (add/remove/update widget, remove window, clear all). It distinguishes from the sibling imgui_redo by noting the undone state is pushed to the redo stack. It's clear without ambiguity though it doesn't explicitly contrast with redo beyond implication.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context by defining what 'destructive operations' are, giving the agent clear conditions for when this tool applies. It doesn't explicitly say when NOT to use it or name alternative tools, but the parenthetical list of destructive operations serves as clear applicability guidance. The redo stack mention implies imgui_redo is the complementary alternative.

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