Skip to main content
Glama

set_stylebox

Apply a StyleBoxFlat to a Godot Theme type/state to customize UI control appearance, including background, border, corner radius, and content margins.

Instructions

Attach a StyleBoxFlat to a Theme type/state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesControl type (e.g. "Button")
stateNoStyle state (normal, hover, pressed, focus, disabled)normal
bg_colorNoBackground color (e.g. "Color(0.2, 0.2, 0.2, 1)")
theme_pathYesPath to .tres Theme file
border_colorNoBorder color
border_widthNoBorder widths [left, right, top, bottom]
corner_radiusNoCorner radii [top_left, top_right, bottom_right, bottom_left]
content_marginNoContent margins [left, right, top, bottom]
Behavior2/5

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

No annotations are provided, so the description carries full burden. It indicates a mutation (attaching a stylebox) but does not disclose side effects such as overwriting existing styleboxes, whether a new resource is created, or whether the theme file is modified on disk. It also does not mention any required permissions or reversibility, similar to the update_drive example.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence with no redundant words. It directly states the main action and target, achieving maximum information density for its length. This is exemplary conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is severely incomplete for a tool with 8 parameters, 2 required, and no annotations or output schema. It does not describe what the tool returns, side effects, or any contextual prerequisites. The agent receives no guidance beyond the schema, which is insufficient for reliable invocation.

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% for all 8 parameters, so the baseline is 3. The description adds no additional semantic meaning beyond the schema. It does not clarify how parameters like bg_color, border_width, or corner_radius map to the StyleBoxFlat properties, but the schema already provides sufficient descriptions.

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

Purpose5/5

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

The description clearly states the action ('Attach a StyleBoxFlat') and the target resource ('a Theme type/state'). This is specific enough to distinguish from sibling tools like read_theme or read_stylebox, which are read operations. The verb is precise and unambiguous.

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?

There is no guidance on when to use this tool versus alternatives. It does not mention when it is appropriate, any prerequisites (e.g., theme file must exist), or refer to related tools like read_stylebox or add_theme_type. The agent is left to infer usage from context.

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/yanhuifair/Godot-MCP'

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