save_thread_workstate

Set a thread's team status and assignee

All MCP toolsWrite

Set the employer team's triage state on a thread: status (open / in_progress / closed) and/or the assignee (any person of your organization; explicit assigneePersonId: null = unassign). PATCH semantics: an omitted field is preserved, latest-wins, any status may follow any other. Workstates are organization-internal bookkeeping — never visible to the candidate, no notifications. Provide at least one field; an empty patch is rejected.

Input schema

{
  "type": "object",
  "properties": {
    "threadId": {
      "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 organization's thread to triage (threads.id)."
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "in_progress",
        "closed"
      ],
      "description": "Employer-side thread work status: \"open\" (the zero-fill default when no workstate row exists), \"in_progress\", or \"closed\". A plain latest-wins enum — any status may follow any other; never visible to the candidate."
    },
    "assigneePersonId": {
      "description": "The assignee to set (persons.id, any person of your organization) — explicit null clears the assignment; omitted preserves it.",
      "anyOf": [
        {
          "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)$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "threadId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

{
  "type": "object",
  "properties": {
    "workstate": {
      "type": "object",
      "properties": {
        "threadId": {
          "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 thread the workstate belongs to (threads.id)."
        },
        "status": {
          "type": "string",
          "enum": [
            "open",
            "in_progress",
            "closed"
          ],
          "description": "Employer-side thread work status: \"open\" (the zero-fill default when no workstate row exists), \"in_progress\", or \"closed\". A plain latest-wins enum — any status may follow any other; never visible to the candidate."
        },
        "assigneePersonId": {
          "anyOf": [
            {
              "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)$"
            },
            {
              "type": "null"
            }
          ],
          "description": "The assignee (persons.id) after the patch; null = unassigned."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
          "description": "When the workstate row last changed (ISO 8601, UTC)."
        }
      },
      "required": [
        "threadId",
        "status",
        "assigneePersonId",
        "updatedAt"
      ],
      "additionalProperties": false,
      "description": "The workstate row as saved — the patch's result, with omitted fields preserved (latest-wins)."
    }
  },
  "required": [
    "workstate"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

On this page