Skip to main content
Glama

add_load_game_from_slot_node

Add save-loading logic to a Blueprint by checking if a save exists, loading it, casting to the specified SaveGame class, and storing the reference, with branching for existing or new saves.

Instructions

Add LoadGameFromSlot + DoesSaveGameExist + Cast nodes to a Blueprint.

From Ch. 11: the complete LoadRound macro pattern. Checks if a save file exists, loads it, casts to the SaveGame class, and stores the reference. Uses Branch node to handle both existing and new save files.

Args: blueprint_name: Blueprint to add nodes to slot_name_variable: Variable holding the save slot filename save_game_class: SaveGame Blueprint class name (e.g., "BP_SaveInfo") save_game_variable: Variable to store the loaded SaveGame reference user_index: Player index node_position: [X, Y] graph position for the first node

KB: see knowledge_base/17_GAME_SYSTEMS_COOKBOOK.md#overview Example: add_load_game_from_slot_node(blueprint_name="/Game/MCP_Test/BP_Example")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_indexNo
node_positionNo
blueprint_nameYes
save_game_classNoBP_SaveInfo
save_game_variableNoSaveInfoRef
slot_name_variableNoSaveSlotName

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of disclosing behavioral traits. It does well by explaining the complete flow: 'Checks if a save file exists, loads it, casts to the SaveGame class, and stores the reference. Uses Branch node to handle both existing and new save files.' This gives the agent a clear mental model of what happens and what to expect. It stops short of detailing side effects like whether variables are created or modified beyond the listed ones, but the core behavior is transparent.

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?

The description is well-structured and front-loaded: a one-sentence summary, followed by a functional overview, a parameter list, a KB reference, and an example. Every sentence adds value, and the layout lets an agent quickly extract the purpose, behavior, and invocation details without wading through fluff.

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?

The description provides a complete picture for an agent to call this tool correctly: it includes all parameter semantics, a concrete example, and a knowledge-base link for deeper context. The output schema exists, so return values do not need description. The only minor gap is not explicitly stating whether additional variables are auto-created, but the parameter explanations make the intended wiring clear enough.

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

Parameters5/5

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

Schema description coverage is 0%, so the parameter meanings rely entirely on the description. The 'Args' block adds meaningful, concise semantics for all six parameters, e.g., slot_name_variable is 'Variable holding the save slot filename' and save_game_class includes an example ('BP_SaveInfo'). The example call further clarifies usage. This fully compensates for the missing schema descriptions.

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 opens with a specific verb-resource combination: 'Add LoadGameFromSlot + DoesSaveGameExist + Cast nodes to a Blueprint.' It clearly names the exact nodes involved, making the tool's function unambiguous. It does not explicitly distinguish itself from sibling node-adding tools, but the composite pattern is unique enough that an agent can tell it apart without additional context.

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?

The description references 'Ch. 11: the complete LoadRound macro pattern' and explains the save/load workflow, giving strong contextual clues about when this tool would be used. However, it never explicitly states when to choose this tool over the many related siblings (e.g., add_save_game_to_slot_node, setup_full_save_load_system) or what conditions make it the right choice. Usage is implied rather than clearly directed.

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