relateBatch
Assert multiple subject-predicate-object relations in one atomic event-log append, validating every edge first so a single invalid endpoint aborts the entire batch.
Instructions
Assert multiple (subject, predicate, object) relations in ONE atomic event-log append. All edges are validated before any write: a single invalid endpoint aborts the entire batch. Use this to seed a graph in one call instead of N sequential relate() calls. Returns the new relation resource names in input order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Provenance label for all appended events, e.g. "mcp:relateBatch". Optional; defaults to "mcp:relateBatch". | |
| relations | Yes | Array of relation assertions to append atomically. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of relations appended. | |
| names | Yes | AIP resource names of the asserted Relations, in input order. | |
| status | Yes | Always "asserted" on success. |