MCP tools

link_related_people

Link two people

Adds a relationship between two contacts and pushes it to iCloud. Memlane writes the reverse link too.

Annotations

{
  "title": "Link two people",
  "readOnlyHint": false,
  "destructiveHint": false,
  "openWorldHint": true,
  "idempotentHint": false
}

Input

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ownerContactId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "The person the label applies to"
    },
    "relatedContactId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "The other person"
    },
    "label": {
      "type": "string",
      "minLength": 1,
      "description": "What the other person is to the owner, e.g. sibling"
    },
    "reciprocalLabel": {
      "description": "Needed when the label has more than one reverse, e.g. son",
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "ownerContactId",
    "relatedContactId",
    "label"
  ],
  "additionalProperties": false
}

Auth

Bearer personal token (ml_…) or OAuth access token (mla_…). Memlane Pro and iCloud required.

Errors

  • 401 missing or invalid credentials
  • 403 account is not Pro or iCloud is not connected
  • 429 rate limit
  • Tool errors return isError text without a stack trace