Skip to main content
Glama

validate_vs_graph_in_unity

Validates Unity Visual Scripting Script Graph asset import and deserialization, checking graph type, elements, GUID, dependencies, and unbound value ports to prevent MissingValuePortInputException.

Instructions

Force Unity to import and deserialize a Visual Scripting Script Graph asset, then return its resolved graph type, element counts, element types, GUID, dependency hash, and required value-port integrity. By default validation fails when a ValueInput has neither a valid connection nor a persisted default because Unity Visual Scripting will throw MissingValuePortInputException if that input is evaluated. This is the authoritative import check after write_vs_graph. It uses reflection so the bridge still compiles in projects without Visual Scripting, where the tool returns a clear validation failure.

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": {
      "assetPath": "<assetPath>"
    },
    "name": "validate_vs_graph_in_unity"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetPathYesProject-relative Script Graph path under Assets (for example, Assets/Graphs/Respawn.asset)
allowUnboundValueInputsNoReport but do not fail validation for unbound value inputs (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations the description carries the full burden and mostly succeeds: it discloses that validation throws/fails on unbound value inputs, names the underlying MissingValuePortInputException, and explains the reflection-based fallback returning a clear failure in projects without Visual Scripting installed. It stops short of saying whether forcing an import has side effects on asset/import state or whether the operation is safe to repeat.

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?

Three sentences, front-loaded with the action and its return surface, with no filler. The first sentence is a long run-on enumeration of returned fields that would read better as a list, which keeps it from a 5.

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?

No output schema exists, so the description must and does enumerate the returned data (graph type, element counts, element types, GUID, dependency hash, value-port integrity). The fallback behavior in projects lacking Visual Scripting is also covered. The remaining gap is the shape/format of that return payload and whether partial failures report per-element detail.

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 the baseline is 3. The description does add real meaning for `allowUnboundValueInputs` by explaining why the default fails (the MissingValuePortInputException on evaluated unconnected inputs), but it says nothing about `assetPath` beyond what the schema pattern and example already convey.

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?

Specific verb chain (force import + deserialize) applied to a named resource (Visual Scripting Script Graph asset), plus an enumeration of what is returned. It does not, however, distinguish itself from the sibling `validate_vs_graph` or `validate_banter_visual_scripting`, whose names suggest overlapping checks, so an agent must infer the split.

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?

"This is the authoritative import check after write_vs_graph" gives a clear sequencing cue and establishes it as the post-write verification step. It also states the default failure condition. What is missing is an explicit exclusion telling an agent when to pick `validate_vs_graph` or `validate_banter_visual_scripting` instead.

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