Skip to main content
Glama

add_math_node

Adds a math operation node to a Blueprint in Unreal Engine, enabling arithmetic, vector, random, and interpolation calculations directly in the visual scripting graph.

Instructions

Add a math operation node.

Args: blueprint_name: Blueprint name operation: Math operation: "Add_FloatFloat", "Subtract_FloatFloat", "Multiply_FloatFloat", "Divide_FloatFloat", "Add_IntInt", "Subtract_IntInt", "Multiply_IntInt", "Divide_IntInt", "VSize" (vector length), "Normalize" (vector normalize), "Clamp", "Lerp", "FInterpTo", "VInterpTo", "RandomFloat", "RandomFloatInRange", "RandomInt", "RandomIntInRange", "Max_Float", "Min_Float", "Abs_Float", "Sin", "Cos", "Sqrt", "Power" node_position: Optional graph position

KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: add_math_node(blueprint_name="/Game/MCP_Test/BP_Example", operation="Example")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYes
node_positionNo
blueprint_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description bears the full behavioral disclosure burden. It reveals the intent to add a node but does not describe side effects on the blueprint graph, failure modes, return value behavior, or whether the blueprint is mutated/compiled.

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 description is reasonably compact and front-loaded with the core purpose, followed by a structured argument list. The example uses 'Example' as an operation value that is not in the valid list, which slightly undermines its usefulness, but overall the structure is clear.

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

Completeness3/5

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

The description covers the essential operation enum and gives a KB pointer, and an output schema exists so return values need not be detailed. However, it omits node_position coordinate format, offers no guidance amid many overlapping sibling tools, and provides a misleading example value.

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 description coverage is 0%, but the description compensates well by exhaustively listing valid operation values and adding human-readable notes for VSize and Normalize. The blueprint_name and node_position explanations are thin, though the example path provides some format context.

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 states a clear action and resource: 'Add a math operation node.' It enumerates the supported operations, which clarifies what the tool does. However, it does not distinguish itself from overlapping sibling tools like add_abs_node, add_clamp_node, add_lerp_node, or add_math_expression_node.

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 generic math node tool versus the many specialized sibling node-adders present in the tool list. It does not mention exclusions, prerequisites, or alternatives, leaving the agent to infer selection criteria.

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