Skip to main content
Glama

RushDB

AttachRelation

Create relationships between records in RushDB by specifying source, target IDs, relation type, and direction to establish connections in your graph database.

Instructions

Create a relationship between records (single or multiple targets)

Input Schema

NameRequiredDescriptionDefault
directionNoDirection of the relationshipoutgoing
relationTypeNoType of the relationship
sourceIdYesID of the source record
targetIdNoID of one target record (deprecated if targetIds provided)
targetIdsNoIDs of multiple target records
transactionIdNoOptional transaction ID for atomic relation creation

Input Schema (JSON Schema)

{ "properties": { "direction": { "default": "outgoing", "description": "Direction of the relationship", "enum": [ "outgoing", "incoming", "bidirectional" ], "type": "string" }, "relationType": { "description": "Type of the relationship", "type": "string" }, "sourceId": { "description": "ID of the source record", "type": "string" }, "targetId": { "description": "ID of one target record (deprecated if targetIds provided)", "type": "string" }, "targetIds": { "description": "IDs of multiple target records", "items": { "type": "string" }, "type": "array" }, "transactionId": { "description": "Optional transaction ID for atomic relation creation", "type": "string" } }, "required": [ "sourceId" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/1pxone/RushDB'

If you have feedback or need assistance with the MCP directory API, please join our Discord server