Skip to main content
Glama

validate_vs_graph

Validates Visual Scripting graph JSON before writing to Unity to catch errors early.

Instructions

Validate a Visual Scripting graph JSON before writing to Unity. Checks:

  • Creator SDK and Banter node types use their known flat namespaces

  • Connections reference node IDs that exist

  • GUIDs are properly formatted

  • Required properties are set

  • No common mistakes (wrong namespaces, missing coroutine flags, etc.)

Use this BEFORE write_vs_graph to catch errors early.

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": {
      "graphJson": "<graphJson>"
    },
    "name": "validate_vs_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
graphJsonYesThe VS graph JSON to validate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does useful work by listing the five concrete validation categories and implying this is a pre-write gate. It never says what the validator returns on failure (error list, exception, success flag), whether it is purely local or requires a Unity bridge connection, or whether it mutates anything — all critical for a validator whose value is its output.

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?

The purpose is stated in the first line, the checks are a tight scannable bullet list, and the usage directive closes it. No sentence is redundant and nothing important is buried.

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 single-parameter tool the description is nearly sufficient, but with no output schema and no annotations, the absence of any description of the validation result (pass/fail shape, error reporting, whether it throws) leaves a real gap for an agent deciding whether to chain this before write_vs_graph.

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 there is only one parameter, so the schema already defines graphJson fully. The description's surrounding context clarifies that the JSON is a pre-write VS graph rather than arbitrary JSON, but adds no format, expected-shape, or example details beyond that.

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 ('Validate a Visual Scripting graph JSON') plus the scope ('before writing to Unity'), and then enumerates exactly what is checked (namespaces, connection ID references, GUID format, required properties, coroutine flags). This lets an agent distinguish it from write_vs_graph 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?

Gives an explicit when-to-use instruction: 'Use this BEFORE write_vs_graph to catch errors early,' which establishes the ordering relationship with the write tool. It does not state any when-not or exclusions (e.g., how it differs from validate_vs_graph_in_unity), but the positive guidance is clear and actionable.

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