graph_link_datastore
Link a datastore (or individual document/chunk) to a graph entity, relationship, entity type, or workflow node. Use after discovering relevant documents via datastore tools. Provide a short reason.
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": {
"subject_type": "<subject_type>",
"subject_id": "<subject_id>",
"asset_type": "<asset_type>",
"datastore_id": "<datastore_id>"
},
"name": "graph_link_datastore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why this asset is linked to the subject | |
| file_id | No | ID of the file/document (required for datastore_document and datastore_chunk) | |
| chunk_id | No | ID of the chunk (required for datastore_chunk) | |
| link_role | No | Role of the link: related (default), source, evidence, definition, policy, example, owner_context | |
| asset_type | Yes | Type of asset to link | |
| confidence | No | Confidence score 0-1 (for agent-generated links) | |
| subject_id | Yes | ID of the subject | |
| datastore_id | Yes | ID of the datastore | |
| subject_type | Yes | Type of subject to link the asset to |