Skip to main content
Glama

Create model

create_model

Creates a new graph data model in the user's toro4n account from nodes, relationships, and notes, lays it out automatically, and returns a link that opens it. Give each node a ref of your choice and use it in relationships and notes. Each model describes a Neo4j schema, not instance data. It holds nodes such as (:Customer), (:Order), or (:Router:Egress), and the relationships between them, such as (:Customer)-[:PLACED]->(:Order). No two nodes can have the same set of labels. Every relationship has a direction. Follow Neo4j's naming conventions: PascalCase for node labels, UPPER_SNAKE_CASE for relationship types, and camelCase for property keys. toro4n converts new names to these conventions. Labels and property keys keep runs of capitals, as in USB and IPAddress. Spaces, underscores, and hyphens always stay as written. Editing a node or relationship leaves its existing names unchanged. Each property has a key and can also have a property type, an example value, and uniqueness and existence constraints. On a node, the first property's example is shown as its caption, so put the most descriptive property first. Leave examples out unless you have realistic values. Read get_modeling_guide first and pass its guideCode. Always share the link with the user.

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": {
      "name": "<name>",
      "nodes": "<nodes>"
    },
    "name": "create_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe model's name.
nodesYes
notesNo
guideCodeNoThe guideCode that get_modeling_guide returns. Required: call get_modeling_guide and read the guide before you create or edit a model.
relationshipsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / nodes / items / properties / properties / items / properties / partOfKey
      Added value: +{
      +  "description": "Set to true on every property that together identifies the node or relationship, such as orderId and lineNo on an order line. toro4n exports one key constraint over all of them, REQUIRE (n.orderId, n.lineNo) IS NODE KEY (IS RELATIONSHIP KEY on a relationship): each must be present and the combination unique. Needs Neo4j Enterprise Edition or Aura. An element has one key.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / relationships / items / properties / properties / items / properties / partOfKey
      Added value: +{
      +  "description": "Set to true on every property that together identifies the node or relationship, such as orderId and lineNo on an order line. toro4n exports one key constraint over all of them, REQUIRE (n.orderId, n.lineNo) IS NODE KEY (IS RELATIONSHIP KEY on a relationship): each must be present and the combination unique. Needs Neo4j Enterprise Edition or Aura. An element has one key.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / guideCode
      Added value: +{
      +  "description": "The guideCode that get_modeling_guide returns. Required: call get_modeling_guide and read the guide before you create or edit a model.",
      +  "maxLength": 100,
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already establish non-readonly, non-destructive, non-idempotent behavior. The description adds substantial context beyond that: automatic layout, returned link, naming normalization, duplicate label-set restriction, directionality of relationships, caption behavior, and Enterprise/Aura requirements for constraints. It does not describe failure modes or how name conflicts are handled.

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?

The purpose and key usage requirements are front-loaded, and most sentences carry useful domain rules. It is fairly long and some naming-convention detail may duplicate the required guide, but the length is defensible for a complex create operation.

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?

For a complex nested creation tool with no output schema, the description covers the core behavior: schema-vs-instance distinction, guide prerequisite, returned link, naming rules, relationship direction, captions, and constraints. Some schema-level fields such as layers and color are not discussed, but the essential creation contract is complete.

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?

With only 40% schema description coverage, the description compensates well by explaining refs, guideCode, node/relationship/property modeling, property ordering and captions, examples, and constraints. It still leaves parameters such as color and layers to the schema, so it is strong but not exhaustive.

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?

The description states a specific verb and resource: 'Creates a new graph data model in the user's toro4n account from nodes, relationships, and notes.' It also clarifies that the model is a Neo4j schema, not instance data, which meaningfully distinguishes it from tools that operate on graph data.

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?

It gives a concrete prerequisite: read get_modeling_guide first and pass its guideCode, and it instructs the agent to always share the returned link with the user. It does not explicitly route modifications to edit_model, so it stops short of full when-to-use/when-not-to-use guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources