Skip to main content
Glama
SaloQT

imgui-mcp

by SaloQT

imgui_pop_style_color

Remove color style overrides from the style stack for a specified window or widget, restoring previously pushed style colors to their original values in Dear ImGui UIs.

Instructions

Pop style color overrides from the style stack for a specific window or widget.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoNumber of style colors to pop (default 1)
targetYesTarget window or widget id
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It doesn't explain the stack semantics - whether popping a non-existent value is a no-op, an error, or crashes; what happens if count exceeds pushed entries; or whether this affects the entire window vs just the widget. The tie to the push/pop stack model is implied but not made explicit.

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?

Single sentence, no wasted words, and the key information is front-loaded. It's appropriately brief for a focused operation, though it could include a brief caveat about stack pairing without becoming verbose.

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?

This is a paired stack operation (push/pop), which is a type of tool that benefits from explanation of the pairing contract. With no output schema and no annotations, and given that imgui_push_style_color exists as a sibling requiring coordination, the description is incomplete. It doesn't explain the requirements (must be called after a corresponding push, count semantics, behavior when stack underflows), making safe invocation uncertain for an agent.

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%, so the schema documents both parameters (count and target). The description adds the concept of 'overrides' and 'style stack,' which provides useful context beyond the schema, but doesn't clarify what valid target values look like or how count interacts with the stack. The description mostly restates what the parameters already convey, hitting the baseline for full coverage.

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 action (pop style color overrides from the style stack) and the resource (a specific window or widget). It distinguishes reasonably from its sibling imgui_push_style_color, which implies the push/pop pairing. However, it doesn't explicitly contrast with push_style_color or other style-related tools like imgui_set_style_var, leaving some ambiguity about stack semantics.

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 lacks guidance on when to use this tool versus push_style_color or set_style_var. There's no explanation of the stack-based model (that pops must correspond to prior pushes), no mention of proper pairing with imgui_push_style_color, and no caveats about popping more than was pushed or nesting requirements.

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