Skip to main content
Glama

build_network

Construct an entire Houdini node network in one atomic, validated call, with optional dry-run. Creates all specs or none, returning cooked errors and geometry counts.

Instructions

Build a whole node network in ONE atomic call — the PREFERRED way to construct anything of 3+ nodes (massively faster than node-by-node calls, and either the whole network builds or nothing does).

Every node type, parameter name, and input reference is validated against the running Houdini BEFORE anything is created; errors come back with did-you-mean suggestions. Use dry_run=True to prove a plan when using unfamiliar node types. The result includes cooked evidence: per-node errors and the display node's geometry counts — read them instead of assuming success.

Each node spec dict supports exactly these keys; an unknown one (in a spec or in an input entry) is a validation error with a did-you-mean, never a silently dropped request: type (required), name, parms (lists set whole parm tuples; a value written {"expr": "ch('../x')"} is set as an expression, with an optional "language": "hscript" | "python", also as one component of a list: "t": [{"expr": "$F"}, 0, 0]; a ramp takes the whole ramp as {"keys", "values", "basis"}), expressions (or its alias exprs: a block of parm name -> expression), inputs (list of source names — earlier spec names, existing children, or absolute paths; or dicts with index or input_name / source / source_output, where input_name is a connector name or label as get_node_card lists them and source_output an output index or name ("v", "P"); or {"indirect_input": n} to wire from connector n of the parent subnet itself), flags (display/render/bypass/template), color [r,g,b], comment, override_expression, run_callbacks. Parms are written in the order given.

A string aimed at a numeric parameter is caught during validation and answered with the {"expr": ...} spelling, instead of failing mid-build and rolling the whole graph back.

A literal in parms does not replace an expression the parm already holds (a Ray SOP ships dir = @N.x): the dry run lists such parms in expressions_in_the_way, the build reports expressions_kept and a warning. "override_expression": true on the spec clears them first.

Display: in a network that was empty, the last node gets the display flag unless a spec sets one. A display flag asked of a node that has none (a usdrender_rop) goes to its nearest input that has one, listed in display_set_upstream.

A LOCKED parm (karmarendersettings resolutiony while res_mode is autoheight) takes nothing; such a spec is refused at validation, nothing built, with locked_parms naming the menu whose callback sets the lock. Houdini runs callbacks only from the UI: "run_callbacks": true on the spec runs each parm's callback after its write, so {"res_mode": "manual", "resolution": [1920, 1080]} builds. Validation replays a spec on a probe, its callbacks included, only when it writes a parm a fresh node locks.

There is no "children" key: build the subnet, then call build_network again with the subnet as parent_path.

Nodes built inside a DOP network come with simulation_cache: the network to pass to reset_simulation before reading a frame it cooked.

Args: parent_path: Network to build inside (e.g. "/obj/geo1"). A missing parent directly under /obj is created, as the container the specs' context needs (geo for SOPs, lopnet for LOPs), and removed again if the build fails; a dry run reports it as would_create_parent. nodes: Ordered node specs (see above). dry_run: Validate the whole spec without creating anything. layout: Also lay out the parent network afterwards (default True; honoured only when auto-layout is enabled). The nodes this call creates are always positioned, each relative to its inputs, regardless of this flag; nodes that already existed keep their exact positions, so building into a hand-arranged network is safe.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodesYes
layoutNo
dry_runNo
parent_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.24.1
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so exceptionally well: it discloses atomic all-or-nothing construction, pre-creation validation with did-you-mean suggestions, rollback on failure, dry-run behavior, locked-parameter refusal, callback-only-from-UI semantics, expression-preservation behavior, and simulation_cache output. It also explains parent auto-creation and removal on failure. This is far beyond what a typical annotation set would provide.

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 front-loaded with the main purpose and structured into readable paragraphs and an Args section, making it navigable despite its length. However, it is extremely long and some edge-case details could likely be trimmed or deferred without hurting invocation success. The density is justified by the absent schema descriptions, but it is not maximally concise.

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?

Given the tool's high complexity, zero annotation coverage, and zero schema description coverage, the description is remarkably complete. It explains return-like evidence (per-node errors, geometry counts, simulation_cache), failure behavior, validation semantics, and edge cases such as locked parameters and display flag propagation. An agent would have enough context to invoke and interpret the tool 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 must compensate completely. It documents parent_path, nodes (including every supported spec key, expression and input forms, and validation rules), dry_run, and layout with default values and interaction nuances such as positioning existing vs. newly created nodes. Every parameter receives richer meaning than the bare schema types alone.

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?

States a specific verb and resource (build a whole node network) and immediately differentiates itself from sibling node-by-node tools by declaring itself the preferred way for 3+ nodes. The atomic guarantee is part of the core purpose, not an afterthought, so an agent can tell what the tool does 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?

Explicitly recommends use for anything of 3+ nodes, contrasts it with slower node-by-node calls, and advises dry_run=True for unfamiliar node types. It also handles the subnet case by directing the agent to call build_network again with the subnet as parent_path. It does not explicitly name other sibling builders such as build_sop_chain, so it falls short of full alternative coverage.

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