Skip to main content
Glama

Bulk Create Graph Relationships

bulk_create_graph_relationships

Create multiple relationships at once (up to 500 per call). Uses Neo4j UNWIND for high performance.

Essential for connecting knowledge — link hundreds of concepts, people, and events in one operation.

Each relationship needs: from_id, to_id, and optional data (properties).

Example: rel_type: "related_to" relationships: [ {"from_id": "quantum-mechanics-001", "to_id": "wave-function-001", "data": {"strength": "strong"}}, {"from_id": "quantum-mechanics-001", "to_id": "superposition-001", "data": {"strength": "strong"}} ]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rel_typeYesRelationship key for all relationships
project_idYesProject ID (UUID)
environmentNoEnvironment: staging or production (default: staging)
relationshipsYesList of relationships. Each: {from_id, to_id, data?}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the write profile is known. The description adds genuinely new operational detail – the 500-relationship ceiling and the Neo4j UNWIND implementation implying a single batched transaction – which the annotations do not cover. It stops short of describing failure/partial-write behavior, which matters for a batch mutation.

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 core capability and the 500 limit are front-loaded, and the example is compact and useful. The 'Essential for connecting knowledge' line is mild marketing padding rather than specification, keeping it just short of 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?

For a 4-parameter bulk write with full schema coverage and safety annotations already supplied, the description covers semantics, limits, and element shape adequately, and no output schema exists to document. However, with no output schema present, it omits any indication of what a batch creates or returns on partial failure, which is the main remaining gap.

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 description coverage is 100%, so the baseline is 3, but the description goes further by spelling out the shape of each array element ('from_id, to_id, and optional data') and giving a concrete worked example with real rel_type and property values. It does not clarify environment defaults or that rel_type applies uniformly to every entry beyond what the schema states.

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 states a specific verb and resource ('Create multiple relationships at once') and quantifies scope with a 500-per-call cap, which implicitly separates it from the singular create_graph_relationship and from bulk_create_graph_nodes. It does not explicitly name either sibling, so an agent still has to infer the bulk-vs-single routing.

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

Usage Guidelines3/5

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

'Essential for connecting knowledge — link hundreds of concepts, people, and events in one operation' implies the bulk scenario but never states when to prefer this over create_graph_relationship or what to do with fewer relationships. No exclusions or prerequisites (e.g., whether referenced nodes must already exist) are given.

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.