Skip to main content
Glama

add_map_contains_node

Add a Map CONTAINS node to a Blueprint to check whether a specified map variable includes a given key, returning True if the key exists without retrieving its value.

Instructions

Add a Map CONTAINS node - check if a key exists in a Map.

From Ch. 13: Returns True if the Map contains an element with the given key. Does NOT return the value (use FIND for that).

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

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
map_variableYes
node_positionNo
blueprint_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries full disclosure burden. It explains the node returns True if the key exists and does not return the value, which is key behavior. It also provides an example. However, it doesn't mention side effects like adding a node to the graph or prerequisites (e.g., map variable must exist), but the core semantics are transparent.

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 concise and front-loads the purpose. It includes an example and KB reference without excessive verbosity. Some extra context (chapter number) is useful but could be trimmed. Overall well-structured.

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?

Given the tool has an output schema (not shown) and the description mentions the return behavior, it's partially complete. The missing key parameter explanation is a major gap. It also doesn't specify prerequisites or error conditions. For a simple node-adding tool, it's adequate but not fully comprehensive.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It lists args with brief meanings (blueprint_name, map_variable, node_position) and gives an example. However, it does not explain how the key to check is provided—there is no key parameter in the schema or description, which is a significant gap. It also doesn't clarify the node_position format or default behavior.

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 clearly states the tool adds a Map CONTAINS node and its purpose is to check if a key exists. It distinguishes from related siblings by explicitly saying it does NOT return the value and points to FIND, making the purpose unambiguous.

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 use case (existence check) and explicitly mentions an alternative (FIND for value retrieval). It references a chapter and KB for context. However, it does not enumerate all sibling alternatives (e.g., add_map_keys_node) or state when not to use this tool, so it's not fully explicit.

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