Skip to main content
Glama
Path of Building MCP Server

Path of Building MCP Server

by ianderse

connect_nodes

Find the cheapest connected passive-tree path linking multiple target nodes, sharing travel nodes to save points and reporting allocation order and stat changes without modifying the build.

Instructions

Find the cheapest connected set of passive nodes that links several target nodes (keystones, notables, jewel sockets) to your current tree, sharing travel nodes between targets instead of pathing to each separately. Minimum-point Steiner tree: proven optimal for up to 8 targets, near-optimal above that. Reports points spent, points saved versus separate paths, allocation order, and the stat change via PoB when the Lua bridge is running. Does not modify the build. For a single target use find_path_to_node.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target_node_ids": "<target_node_ids>"
    },
    "name": "connect_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
validateNoPreview the stat change with PoB calcWith when the Lua bridge is running (default: true)
build_nameNoBuild to analyze (optional if a build is loaded via lua_load_build)
target_node_idsYesIDs of the passive nodes to connect (max 40)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full load and does so: 'Does not modify the build' declares read-only behavior, the output contents are enumerated (points spent, points saved vs separate paths, allocation order, PoB stat change), and the PoB dependency is conditional on the Lua bridge running. Optimality guarantees are also disclosed rather than left to inference.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core mechanic and the sharing insight, then optimality, then outputs, then the exclusion. No sentence is redundant and the alternative-use note lands last where it is easy to catch.

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?

For a three-parameter computation tool with no output schema, the description covers inputs (target semantics), behavior (read-only, optimality bounds), and returns (the four reported quantities). Nothing an agent needs to call it correctly or interpret the result is missing.

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?

Schema coverage is 100%, so the baseline is 3; the description adds meaning by clarifying that targets are keystones, notables, and jewel sockets and that results are relative to the current tree. It explains the PoB validation path and the build context, though the 40-cap and validate default are already in the schema.

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 (find the cheapest connected set of passive nodes linking several targets) and adds the key differentiator: travel nodes are shared between targets rather than pathing to each separately. It names the sibling it is not (find_path_to_node) so an agent can separate the two without opening either schema.

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

Usage Guidelines5/5

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

Explicitly routes single-target work to find_path_to_node, implying this tool is for multi-target linking. It also bounds applicability with concrete limits (max 40 targets, proven optimal up to 8, near-optimal above), which tells an agent when the result quality changes.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.