Skip to main content
Glama
SaloQT

imgui-mcp

by SaloQT

imgui_load_font

Load a TTF or OTF font into the live ImGui atlas under a stable ID, with support for glyph ranges, pixel size, and optional icon/fallback merging.

Instructions

Load a TTF or OTF font into the live ImGui atlas under a stable ID. Use imgui_set_font to make it the global default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUnique font identifier
pathYesNative-app-visible TTF or OTF path
merge_intoNoOptional loaded font ID to merge this face into (for icon/symbol fallback fonts)
size_pixelsNoFont size in pixels (default 16)
glyph_rangesNoGlyph coverage preset (default: unicode)
Behavior2/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 of behavioral disclosure. 'Load... into the live ImGui atlas' implies a mutating operation, and the merge/size/glyph behavior is only implicit. It doesn't disclose error outcomes (e.g., failure on invalid path), whether the operation is reversible, overwrite behavior for duplicate IDs, or whether this modifies state globally.

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 concise sentences with zero filler. The forward reference to imgui_set_font adds value without bloat. Could arguably add a bit more behavioral context, but for its length it is efficient and front-loads the core action.

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 font-loading tool with no annotations and no output schema, the description is thin on behavioral context. It doesn't mention error handling for invalid paths, ID collision behavior, or any persistence guarantees. The structured schema covers parameters well, but the overall tool semantics — especially side effects and requirements — are under-explained for an agent to invoke confidently.

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 all five parameters already have descriptive text in the schema (unique font identifier, native-app-visible path, merge for icon fallback, size with default, glyph preset enum). The description adds marginal value beyond the schema by framing the 'stable ID' concept, but doesn't elaborate further on parameter usage or format expectations. Baseline 3 is appropriate given full schema 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 verb+resource ('Load a TTF or OTF font into the live ImGui atlas under a stable ID') with a specific, distinct purpose. It distinguishes from the sibling imgui_set_font by noting the loaded font can then be made the global default, though it relies on that single reference rather than fully contrasting with imgui_list_fonts.

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

Usage Guidelines3/5

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

The description includes one usage pointer ('Use imgui_set_font to make it the global default'), which hints at the workflow. However, it doesn't explicitly address when to load a font vs. alternatives, prerequisites (e.g., that a window/app must be alive to load into the atlas), or when merging glyph_ranges would be appropriate beyond the param description.

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