Skip to main content
Glama

add_random_array_item_node

Add a random array item node to a Blueprint to retrieve a random element from an existing array, enabling random selection from target points or other lists.

Instructions

Add a Random Array Item node to get a random element from an Array.

From Ch. 13 (BP_RandomSpawner): Returns a random element from the array. Used to randomly select a spawn point from an array of Target Points.

Args: blueprint_name: Blueprint to add the node to array_variable: Array variable name node_position: [X, Y] graph position

KB: see knowledge_base/07_DATA_STRUCTURES.md#overview Example: add_random_array_item_node(blueprint_name="/Game/MCP_Test/BP_Example", array_variable="ExampleName")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
node_positionNo
array_variableYes
blueprint_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior2/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 behavioral disclosure. It only states that it adds a node, but does not disclose side effects (e.g., modifying the blueprint graph), prerequisites (e.g., the array variable must exist), or failure modes. The absence of such details leaves the agent unaware of the mutation's scope.

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 well-structured: a clear opening, contextual note, argument list, KB reference, and example. It is mostly efficient, though the 'From Ch. 13' context is somewhat peripheral and could be trimmed. The core purpose is front-loaded.

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 tool is moderately complex with 3 params and an output schema, so return values are covered externally. However, the description omits important context such as whether the blueprint must already exist, what happens if the array variable is not found, and how the node is positioned relative to the graph. The KB reference helps but does not fill all gaps.

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?

With schema description coverage at 0%, the description compensates by explaining all three parameters: blueprint_name, array_variable, and node_position. It adds meaning beyond the schema by specifying what each parameter is for and providing a concrete example. It could go deeper (e.g., coordinate format, variable type constraints) but is largely sufficient.

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 opens with a specific verb and resource: 'Add a Random Array Item node to get a random element from an Array.' This clearly states what the tool does and differentiates it from sibling node-adding tools by naming the exact node type. The example and context reinforce the intended use without ambiguity.

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

Usage Guidelines4/5

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

The description gives a clear usage context: 'Used to randomly select a spawn point from an array of Target Points.' It also provides an example. However, it does not mention alternatives or when not to use this tool, so it falls short of explicit when/when-not guidance.

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