add_clamp_node
Add a Clamp node in an Unreal Blueprint to restrict a value between specified minimum and maximum limits.
Instructions
Add a 'Clamp' node to constrain a value within a range.
Used throughout the book (Ch.6, 8): Clamps health, stamina, ammo values between min and max so they never exceed valid ranges.
Args: blueprint_name: Blueprint name operand_type: "Float" or "Integer" min_value: Minimum allowed value max_value: Maximum allowed value node_position: Optional [X, Y] graph position
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: add_clamp_node(blueprint_name="/Game/MCP_Test/BP_Example")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"blueprint_name": "<blueprint_name>"
},
"name": "add_clamp_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_value | No | ||
| min_value | No | ||
| operand_type | No | Float | |
| node_position | No | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |