Skip to main content
Glama

add_pcg_subgraph_node

Embed one PCG graph inside another as a Subgraph node to reuse scatter or filter recipes, after checking the host graph uses its input and exposes parameters.

Instructions

Embed one PCG graph inside another as a Subgraph node -- how you reuse a scatter or filter recipe across biomes instead of duplicating nodes, and how you consume a library graph without editing it. Check first with get_pcg_graph_info that the target graph actually USES its input node (a graph with no edges from its default input cannot be fed filtered data and will ignore whatever you wire in), and with get_pcg_graph_parameters whether it exposes anything tunable.

Returns: { graph_name, asset_path, node_name, node_title, subgraph_path, subgraph_set, node_count, saved }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
subgraph_pathYes/Game/... path to the UPCGGraph to embed as a subgraph (required)
pcg_graph_pathYes/Game/... path to the host UPCGGraph (required)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnly=false, destructive=false), so the bar is lower, but the description still adds a non-obvious caveat: a target graph with no edges from its default input will silently ignore wired data. The returns block also implies the host graph is persisted ('saved'), useful context for a mutation.

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 purpose is front-loaded before the prerequisite checks, and every clause carries information. The em-dash explanatory clause and parenthetical are slightly narrative but earn their place by clarifying intent and the input-node caveat.

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?

With no output schema, the description helpfully lists the return fields and covers prerequisites and the key behavioral gotcha. It leaves minor gaps such as idempotency on repeat invocation and behavior when the subgraph path is invalid, but nothing essential to a correct call is missing.

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 coverage is 100% and both parameters are documented in the schema as host graph vs. subgraph paths. The description's 'target graph'/'subgraph' wording loosely maps to them but adds no format, constraint, or edge-case detail beyond what the schema already provides, so the baseline 3 applies.

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 gives a specific verb+resource ('Embed one PCG graph inside another as a Subgraph node') and distinguishes it from the plain node-adding siblings by explaining the reuse/library-consumption intent. An agent can tell this apart from add_pcg_node or connect_pcg_nodes without opening the schema.

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?

It clearly states the context for use (reusing a scatter/filter recipe across biomes, consuming a library graph) and names two prerequisite tools to run first: get_pcg_graph_info and get_pcg_graph_parameters. It never explicitly says when NOT to use this rather than add_pcg_node, so it falls just short of the top band.

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