create_relation
Create a concrete relation between two documents for a writable association. Supports issues, documents, cards, and raw endpoints with direction control and duplicate handling.
Instructions
Idempotently create one concrete relation between two resolved documents for a writable association. Endpoint locators support raw, issue, document, and card. Enforces association endpoint classes, direction, duplicate handling, automation-only restrictions, and cardinality.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| association | Yes | a string that will be trimmed | |
| source | Yes | Source endpoint document | |
| target | Yes | Target endpoint document | |
| direction | No | Relation traversal direction: source-to-target, target-to-source, either. Defaults to source-to-target. | |
| ifExists | No | return_existing (default) returns an existing relation; fail reports an existing relation as an error |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The successful tool result. The same value is also serialized as JSON in the text content for clients that do not read structuredContent. | |
| warnings | No | Optional agent-visible warnings about degraded result fidelity. Omitted when the server returned the documented happy-path payload. |