Skip to main content
Glama

get_material_instance_static_switch

Read-onlyIdempotent

Read a static-switch parameter value from a Material Instance Constant to check its boolean state and override status.

Instructions

Read a static-switch (static bool) parameter value from a Material Instance Constant (via UMaterialEditingLibrary::GetMaterialInstanceStaticSwitchParameterValue). Editor-only.

Returns: { material_instance_path: string, parameter_name: string, association: string, value: bool, overridden: bool }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
associationNoOptional EMaterialParameterAssociation: "Global" (default), "Layer", or "Blend".
layer_indexNoOptional zero-based index for Layer/Blend association (ignored for Global).
parameter_nameYesName of the static-switch parameter.
material_instance_pathYesContent path to the UMaterialInstanceConstant.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the bar is lower, and the description still adds the 'Editor-only' constraint plus an explicit return shape including 'overridden'. It does not mention error behavior when the parameter is absent, but the added context is meaningful.

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?

Two compact segments – purpose/scope front-loaded, then the return shape – with zero filler. Every clause (static bool, source function, editor-only, return fields) earns its place.

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 simple idempotent read whose safety semantics are already in annotations and whose params are fully schema-documented, the description supplies the missing pieces: editor-only scoping and the return field list. Only the absence-of-parameter / error case is left unaddressed.

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 fully documents all four parameters including association, layer_index, and path. The description adds nothing about parameter syntax or defaults beyond the schema, so the baseline 3 is appropriate.

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?

States a precise verb + resource: reading a single static-switch (static bool) parameter value from a Material Instance Constant, and even names the underlying library call. The singular 'a static-switch parameter value' implicitly distinguishes it from list-style siblings such as get_material_static_switch_parameters.

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?

There is no explicit when-to-use or when-not-to-use guidance and no alternatives named (e.g. set_material_instance_static_switch for writing). The 'Editor-only' note is the only usage constraint, leaving selection between this and the sibling getters to inference.

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