Skip to main content
Glama

clear_and_fill_render_target

DestructiveIdempotent

Fill an entire render target with a solid color via canvas to clear or initialize it; returns drawn status and canvas dimensions, or false if nothing renders.

Instructions

Fill an entire render target with a solid color via the canvas. drawn is false, and the call fails, when the canvas draws nothing (no white texture or a zero size).

Returns: { render_target_path: string, drawn: bool, canvas_width: number, canvas_height: number, fill_color: [number] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorNoOptional [r, g, b, a] fill color, defaults to opaque white
render_target_pathYesAsset path of the destination render target, e.g. /Game/MyGame/RT_Example

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds genuinely new behavioral context: the exact failure semantics ('drawn is false, and the call fails, when the canvas draws nothing (no white texture or a zero size)'). It stops short of explaining permissions or what 'clears' means relative to the sibling clear_render_target.

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 tight sentences with the core action front-loaded, followed by the return shape. The failure clause is slightly convoluted ('drawn is false, and the call fails, when...') but every line carries information and nothing is padded.

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?

With no output schema, the description usefully supplies the return object shape and the failure signature, and the schema covers both parameters. The only missing piece an agent would want is how this relates to clear_render_target and the other render-target drawing tools.

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 both parameters are already documented (color as [r, g, b, a] defaulting to opaque white, and render_target_path). The description adds nothing about parameter formats or defaults, so the baseline 3 applies.

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?

States a specific verb+resource+scope: 'Fill an entire render target with a solid color via the canvas.' An agent can tell this overwrites the whole target rather than drawing to a region. It does not, however, differentiate itself from close siblings like clear_render_target or draw_*_to_render_target, so the boundary is left to the name.

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 when-to-use guidance and no alternatives named. The description explains a failure condition but never says when an agent should pick this over clear_render_target or draw_material_to_render_target, which are the obvious competing tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools