Skip to main content
Glama
Path of Building MCP Server

Path of Building MCP Server

by urbanvcode

find_path_to_node

Calculates the shortest passive-tree path from your current build to a target node, using a named build or the loaded Lua bridge build.

Instructions

Find the shortest path from your current tree to a specific passive node. Uses loaded Lua bridge build when no build_name is provided.

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_id": "<target_node_id>"
    },
    "name": "find_path_to_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
build_nameNoBuild to analyze (optional if a build is loaded via lua_load_build)
target_node_idYesID of the target passive node

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the build-resolution fallback and that the result is a shortest path (implying an algorithmic guarantee), but it does not state whether the operation is read-only, whether it alters the loaded build, how ties or unreachable nodes are handled, or what form the path takes.

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?

Two short sentences with zero padding; the core action is front-loaded and the build-resolution caveat follows naturally. Nothing here is redundant or wasted.

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?

For a simple two-parameter read tool this is adequate on inputs, but with no output schema and no annotations the description leaves the return value undescribed — an agent cannot tell whether it receives an ordered node list, a length, or a cost. That gap matters for a path-query tool.

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%, so both parameters are already documented, including the build_name fallback. The description restates that precedence rather than adding new semantics such as accepted ID formats or whether target_node_id may be outside the current tree; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: computing the shortest path from the current tree to a named passive node. That is clearly distinct from siblings like get_nearby_nodes or optimize_tree, although it never names a sibling explicitly.

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?

The second sentence gives a real selection rule for the optional build_name ('uses loaded Lua bridge build when no build_name is provided'), which is useful. However, there is no guidance on when to choose this tool over alternatives such as get_nearby_nodes or optimize_tree, and no preconditions or exclusions.

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