Skip to main content
Glama

Create Graph Project

create_graph_project

Create a new Neo4j graph database project from a hierarchical JSON schema.

⚠️ GRAPH SCHEMA FORMAT — READ BEFORE CREATING:

Graph schemas define nodes (entities) and relationships, NOT flat database tables. Each field is a dict with "type" and optional "required": true (defaults to false).

SCHEMA STRUCTURE: { "nodes": { "EntityName": { "description": "What this entity represents", "flat_labels": ["AdditionalLabel"], "schema": { "field_name": {"type": "string", "required": true}, "other_field": {"type": "integer"} } } }, "relationships": { "RELATIONSHIP_TYPE": { "from": "EntityName", "to": "OtherEntity", "cardinality": "MANY_TO_MANY", "data_schema": { "field_name": {"type": "date"} } } } }

FIELD TYPES: string, integer, float, boolean, date, json

CARDINALITY OPTIONS: ONE_TO_ONE, ONE_TO_MANY, MANY_TO_ONE, MANY_TO_MANY

HIERARCHICAL NODES: nest an entity inside its parent entity (beside "description", "flat_labels" and "schema") to create a type hierarchy; the child inherits the parent's labels: "Animal": {"description": "...", "schema": {...}, "Dog": {"description": "...", "schema": {...}}}

RULES:

  1. "nodes" key is REQUIRED — must contain at least one entity

  2. Each entity needs "description" and "schema" with field definitions

  3. Each field is {"type": "...", "required": true/false} — required defaults to false

  4. Relationship "from"/"to" must reference defined node names

  5. Relationship types should be UPPER_SNAKE_CASE

  6. Entity names should be PascalCase

  7. Automatic fields (id, created_at, updated_at) are NOT needed

WORKFLOW:

  1. get_graph_template_schemas FIRST to see valid examples

  2. create_graph_project with a cluster_id from list_clusters

  3. Poll get_job_status with the returned job_id (2-5 minutes) While RationalBloks is being updated, the call is refused with 'RationalBloks is being updated': call it again in a few minutes.

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>",
      "schema": "<schema>",
      "cluster_id": "<cluster_id>"
    },
    "name": "create_graph_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesProject name
schemaYesGraph schema with 'nodes' and optionally 'relationships' keys. Use get_graph_template_schemas to see valid examples.
cluster_idYesREQUIRED — BYOC resource pool ID (from list_clusters) to deploy this graph project onto your own cluster. Register a pool via the Resource Pools UI first, then pass its id here.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / cluster_id / description
      Previous value: -"REQUIRED — BYOC resource pool ID (from list_clusters) to deploy this graph project onto your own cluster. Owned hosting is retired: a project we operate must run on your own infrastructure. Register a pool via the Resource Pools UI first, then pass its id here."New value: +"REQUIRED — BYOC resource pool ID (from list_clusters) to deploy this graph project onto your own cluster. Register a pool via the Resource Pools UI first, then pass its id here."
  2. Changed1 schema field changed
    • removedInput schema / properties / description
      Removed value: -{
      -  "description": "Optional project description",
      -  "type": "string"
      -}
  3. Changed2 schema fields changed
    • changedInput schema / properties / cluster_id / description
      Previous value: -"Optional BYOC resource pool ID (from list_clusters) to deploy this project onto your own cluster. Omit to deploy on RationalBloks-hosted infrastructure."New value: +"REQUIRED — BYOC resource pool ID (from list_clusters) to deploy this graph project onto your own cluster. Owned hosting is retired: a project we operate must run on your own infrastructure. Register a pool via the Resource Pools UI first, then pass its id here."
    • changedInput schema / required
      Previous value: -[
      -  "name",
      -  "schema"
      -]New value: +[
      +  "name",
      +  "schema",
      +  "cluster_id"
      +]
  4. Changed1 schema field changed
    • addedInput schema / properties / cluster_id
      Added value: +{
      +  "description": "Optional BYOC resource pool ID (from list_clusters) to deploy this project onto your own cluster. Omit to deploy on RationalBloks-hosted infrastructure.",
      +  "type": "string"
      +}
  5. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare create/not-read-only/not-idempotent; the description adds the traits that actually matter here — the operation is asynchronous and returns a job_id that must be polled for 2-5 minutes, and the target cluster must already exist as a registered BYOC resource pool. It also discloses a transient refusal mode and the correct retry response, plus that id/created_at/updated_at are auto-generated so the caller need not supply them.

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?

Long but largely earned: the warning is front-loaded, then structure, types, cardinality, rules, and workflow in a scannable order. Some trimming is possible (the FIELD TYPES and CARDINALITY OPTIONS lists partly restate the example), and the trailing RationalBloks sentence sits awkwardly at the end of the WORKFLOW section instead of its own note.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-required-param creation tool with a nested free-form schema object and no output schema, the description covers the input contract, prerequisites, async return handling, and failure mode. Nothing an agent needs in order to call it correctly and interpret the result is missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description meaningfully enriches the nested `schema` parameter with node/relationship structure, allowed field types, cardinality enums, nesting-for-inheritance semantics, and required-default behavior that the schema itself only references. Minor deduction because `name` and other top-level params are left to the schema.

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, resource, and input contract: 'Create a new Neo4j graph database project from a hierarchical JSON schema.' The graph-vs-relational warning ('nodes and relationships, NOT flat database tables') immediately distinguishes this from the flat-schema sibling create_project.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The WORKFLOW block gives an explicit ordered procedure with named alternatives: call get_graph_template_schemas FIRST, obtain cluster_id from list_clusters, then poll get_job_status with the returned job_id for 2-5 minutes. It also states a when-not condition via the 'RationalBloks is being updated' refusal and retry 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.