Skip to main content
Glama

add_line_trace_by_channel_node

Insert a Line Trace By Channel node into a Blueprint to test collisions along a line using Visibility or Camera channel, returning the first hit actor for further hit data extraction.

Instructions

Add a 'Line Trace By Channel' node.

Ch.14: Tests for collisions along a line using Visibility or Camera channel. Returns a single Hit Result (first actor hit). Use break_hit_result_node to access hit data (Location, Hit Actor, Impact Normal, etc.)

Args: blueprint_name: Blueprint name trace_channel: "Visibility" or "Camera" draw_debug: "None", "ForOneFrame", "ForDuration", "Persistent" node_position: Optional [X, Y] graph position

KB: see knowledge_base/26_CHAOS_PHYSICS_AND_DESTRUCTION.md#overview Example: add_line_trace_by_channel_node(blueprint_name="/Game/MCP_Test/BP_Example")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
draw_debugNoNone
node_positionNo
trace_channelNoVisibility
blueprint_nameYes

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, the description carries the burden of explaining behavior. It discloses the node's runtime output, the allowed debug modes, downstream hit-data access, and a KB reference. It could further clarify tool-level side effects or exact return value, but the 'add node' behavior is unambiguous and well contextualized.

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 compact and well organized: purpose, behavior, args, KB link, and example. Each section earns its place, and the key behavioral facts are front-loaded. Minor redundancy exists in restating the tool name in the first sentence, but it does not waste space.

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

Completeness4/5

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

For a 4-parameter graph-mutation tool with no annotations and an output schema present, the description covers the node's purpose, return semantics, downstream usage, parameters, and gives a runnable example. It lacks explicit alternatives guidance against sibling trace nodes, but overall an agent has enough context to call it correctly.

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 description fully compensates: it enumerates all four parameters, gives exact allowed values for trace_channel and draw_debug, marks node_position as optional, and provides an example showing the blueprint_name path format. This is much more informative than the bare schema titles.

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+resource ('Add a Line Trace By Channel node') and then explains the node's behavior: collision testing along a line using Visibility or Camera channel, returning a single Hit Result. This differentiates it from sibling tools like add_multi_line_trace_by_channel_node and add_line_trace_for_objects_node without needing to open their schemas.

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?

Usage context is implied through the behavioral description (single hit, Visibility/Camera channel), and the description points to break_hit_result_node for downstream data access. However, it never explicitly states when to choose this tool over sibling trace nodes or when not to use it, so the agent must infer the selection logic.

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