MCP 2025-06-18

context_link_create

Create a typed link between two exact Work, Idea, Memory, or Session endpoints. This never grants access: the caller must be authorized to read both endpoints and write the source endpoint.

Input schema

This schema is shared with tools/list. The server also verifies current scopes and resource-level access before returning data or changing a record.

Synthetic example · JSON
{
  "type": "object",
  "properties": {
    "source": {
      "type": "object",
      "description": "Exact source endpoint",
      "properties": {
        "type": {
          "enum": [
            "work",
            "idea",
            "memory",
            "session"
          ]
        },
        "id": {
          "type": "string",
          "description": "Exact entity ID"
        }
      },
      "required": [
        "type",
        "id"
      ],
      "additionalProperties": false
    },
    "target": {
      "type": "object",
      "description": "Exact target endpoint",
      "properties": {
        "type": {
          "enum": [
            "work",
            "idea",
            "memory",
            "session"
          ]
        },
        "id": {
          "type": "string",
          "description": "Exact entity ID"
        }
      },
      "required": [
        "type",
        "id"
      ],
      "additionalProperties": false
    },
    "relation": {
      "enum": [
        "related",
        "informs",
        "supports",
        "blocks",
        "derived_from"
      ]
    },
    "note": {
      "type": "string",
      "description": "Optional context or evidence for the relationship"
    },
    "idempotencyKey": {
      "type": "string",
      "description": "Unique retry key"
    }
  },
  "required": [
    "source",
    "target",
    "relation",
    "idempotencyKey"
  ],
  "additionalProperties": false
}

Call this tool

Use the tool name below in params.name. Supply the exact arguments described above; this envelope deliberately leaves required resource values for your authorized context.

Synthetic example · JSON
{
  "jsonrpc": "2.0",
  "id": "example_request",
  "method": "tools/call",
  "params": {
    "name": "context_link_create",
    "arguments": {}
  }
}

Read the result before continuing

Inspect protocol errors and the tool result’s isError flag. A request being accepted is not proof of an external action completing. Preserve correlation IDs and unchanged mutation idempotency keys across safe retries.