Skip to main content
Glama

set_blueprint_function_pure

DestructiveIdempotent

Mark a Blueprint function graph as pure or impure via the editor's Pure checkbox. Required to finish UMG property bindings, since bindings reject functions that are not BlueprintPure or const.

Instructions

Mark a Blueprint function as PURE (or back to impure), the editor's "Pure" checkbox: a pure function has no exec pins and is re-evaluated wherever its output is read. REQUIRED to finish a UMG property binding -- FDelegateEditorBinding::IsBindingValid refuses any function that is not FUNC_BlueprintPure or const, so add_widget_property_binding will report valid:false until this has been run on the function. The counterpart reader is get_blueprint_functions_list's is_pure, which reads the same flag off the same UK2Node_FunctionEntry. WARNING: Turning a function pure REMOVES its exec pins: any existing wire into or out of them is dropped by the reconstruct, so do this BEFORE building the function's body, not after.

Returns: { blueprint_name, function_name, is_pure, was_pure, changed, function_flags } -- is_pure is RE-READ from the entry node after the compile, so it is evidence and not an echo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoOptional. This command is REFUSED while a Play-in-Editor session is running: it either compiles a Blueprint (the reinstancer can retain a world, and CheckForWorldGCLeaks is Fatal -- it KILLS the editor) or writes to disk (Editor.AllowSavingAssetsDuringPIE=0 makes the engine refuse the write, so it would report success without writing a byte). Stop PIE and retry instead; force=true runs it anyway, at your own risk.
is_pureNotrue to mark pure (default true), false to make it impure again.
function_nameYesName of the function GRAPH (not an event; events cannot be pure).
blueprint_nameNoName (or full object path) of the Blueprint owning the function.
blueprint_pathNoAlias of `blueprint_name` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `blueprint_name`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already mark this destructive and idempotent, and the description adds the specific form of destruction (turning a function pure REMOVES its exec pins and drops existing wires via reconstruct) plus the PIE refusal behavior and the fact that is_pure is re-read after compile as evidence rather than an echo. This is well beyond what the annotations convey and is consistent with them.

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?

The purpose and the critical ordering warning are front-loaded, and the parenthetical detail about FDelegateEditorBinding::IsBindingValid justifies its length by explaining why the tool matters. It is dense and long but nearly every clause carries actionable information; minor trimming would help.

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

Completeness5/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 carries the return contract itself (blueprint_name, function_name, is_pure, was_pure, changed, function_flags) and explains the one non-obvious field. Combined with the destructive-warning and PIE constraints, an agent has everything needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so parameters are already documented; the description adds value by clarifying that is_pure is the same flag the reader tool exposes and that the flag is re-read post-compile, giving the parameter a verifiable meaning. It does not add much on force/blueprint_path beyond the schema.

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 states a specific verb and resource (mark a Blueprint function pure/impure) and grounds it in a concrete editor concept (the 'Pure' checkbox) with a precise consequence (no exec pins, re-evaluated on read). It also distinguishes itself from the reader sibling get_blueprint_functions_list's is_pure, which reads the same flag.

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

Usage Guidelines5/5

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

It gives an explicit prerequisite chain: it is REQUIRED to complete a UMG property binding because add_widget_property_binding reports valid:false until it runs. It further specifies ordering ('do this BEFORE building the function's body, not after') and routes the caller to the reader tool for verification.

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