Skip to main content
Glama

generate_vs_graph

Generate Visual Scripting graph JSON from a high-level description, including nodes, GUIDs, connections, properties, and optional auto-layout.

Instructions

Generate a Visual Scripting graph JSON from a high-level description. Handles all the complexity:

  • Creates proper node structure

  • Generates valid GUIDs

  • Sets up connections

  • Includes required properties

  • Auto-positions nodes by graph topology when position is omitted, preserving explicit positions

Returns the graph JSON which you should validate before writing.

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": {
      "graphName": "<graphName>"
    },
    "name": "generate_vs_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodesNoArray of node specifications
layoutNoOptional left-to-right auto-layout settings for nodes without explicit positions.
graphNameYesName for the graph asset
variablesNoGraph variables
connectionsNoArray of connection specifications
descriptionNoHigh-level description of what the graph should do

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

A3.6/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, and it does disclose real behavior: GUID generation, connection wiring, required properties, and topology-based auto-positioning that preserves explicit positions. It never states whether the tool touches the Unity project or filesystem (a pure transform vs. a side-effecting call), which is the single most important behavioral fact given siblings like write_vs_graph and validate_vs_graph_in_unity exist.

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?

Front-loaded with the core action, then a short bullet list of what 'handles all the complexity' means. The bullets are slightly promotional ('proper', 'valid', 'required') but each maps to a distinct capability, so little is 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 six-parameter tool with nested node/connection/layout objects and no output schema, the description covers the output shape and the auto-layout rule adequately. It leaves out how to discover valid node types and port names (a real blocker for populating nodes and connections) and says nothing about failure behavior or node-count limits.

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 description coverage is 100%, so nodes, connections, layout, variables, and graphName are all already documented in the schema. The description adds only one semantic beyond it — that omitted positions get topology-based auto-layout while explicit ones are preserved — which mostly restates the schema's own 'Omit to use spatial auto-layout' note.

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 opens with a specific verb and resource: 'Generate a Visual Scripting graph JSON from a high-level description.' That is unambiguous about what the tool produces, and the closing line 'Returns the graph JSON which you should validate before writing' implicitly separates it from the validate/write siblings without naming them.

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?

'Returns the graph JSON which you should validate before writing' gives a clear workflow position: this is a pure generation step, followed by validation and then writing. It stops short of naming validate_vs_graph or write_vs_graph explicitly, so the agent must infer which sibling performs each follow-up step.

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