Generated from MCP descriptors

SCRYU MCP docs

Canonical endpoint: https://staging-agents.scryu.com/mcp

Code Mode endpoint: https://staging-agents.scryu.com/mcp/code

Operations endpoint: https://staging-agents.scryu.com/mcp/ops

Operations Code Mode endpoint: https://staging-agents.scryu.com/mcp/ops/code

Prompts

create_opportunity_from_prompt

Turn an operator instruction into a receipt-backed SCRYU opportunity workflow.

Arguments
{
  "type": "object",
  "properties": {
    "operator_prompt": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "company_hint": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "priority": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "urgent"
      ]
    },
    "target_close_date": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "operator_prompt"
  ],
  "additionalProperties": false
}

Tools

list_assigned_outreach

List and deterministically page only the authenticated operator's outreach work, with campaign, status, readiness and text filters. No writes.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "status_scope": {
      "type": "string",
      "enum": [
        "open",
        "sent",
        "all"
      ]
    },
    "work_filter": {
      "type": "string",
      "enum": [
        "open_work",
        "ready_mine",
        "needs_owner",
        "needs_contact",
        "needs_draft",
        "ready_to_send",
        "blocked",
        "sent",
        "follow_up"
      ]
    },
    "search_query": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "cursor": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string",
          "maxLength": 4000
        }
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "outreach": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "outreach_id": {
            "type": "string"
          },
          "campaign": {
            "type": "object",
            "properties": {
              "campaign_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "revision": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "NaN",
                      "Infinity",
                      "-Infinity"
                    ]
                  }
                ]
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "campaign_id",
              "name",
              "revision",
              "status"
            ],
            "additionalProperties": false
          },
          "person": {
            "type": "object",
            "properties": {
              "person_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "current_title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current_company_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "person_id",
              "name",
              "current_title",
              "current_company_name"
            ],
            "additionalProperties": false
          },
          "readiness": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "assignment_id": {
                  "type": "string"
                },
                "channel": {
                  "type": "string"
                },
                "variation": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "readiness": {
                  "type": "string"
                },
                "blockers": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "assignment_id",
                "channel",
                "variation",
                "status",
                "readiness",
                "blockers"
              ],
              "additionalProperties": false
            }
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          }
        },
        "required": [
          "outreach_id",
          "campaign",
          "person",
          "readiness",
          "statuses",
          "channels",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "type": "string"
    }
  },
  "required": [
    "outreach",
    "is_done",
    "continue_cursor"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

read_outreach

Read one assigned work item with exact copy, blockers, prepared identity and a bounded first page of accepted send evidence. Does not authorize a send.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "assignment_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "assignment_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "outreach": {
      "type": "object",
      "properties": {
        "outreach_id": {
          "type": "string"
        },
        "campaign": {},
        "person": {},
        "prior_touch_summary": {},
        "channels": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "assignment": {},
              "readiness": {
                "type": "string"
              },
              "blockers": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "copy": {},
              "override_state": {},
              "prepared_snapshot": {},
              "launch": {},
              "accepted_send_evidence": {
                "type": "object",
                "properties": {
                  "page": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "evidence_record_id": {
                          "type": "string"
                        },
                        "evidence_id": {
                          "type": "string"
                        },
                        "evidence_kind": {
                          "type": "string",
                          "enum": [
                            "operator",
                            "agent",
                            "provider"
                          ]
                        },
                        "source": {
                          "type": "string"
                        },
                        "outreach_attempt_id": {
                          "type": "string"
                        },
                        "draft_revision_id": {
                          "type": "string"
                        },
                        "recipient_override_revision_id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "authorizing_preference_revision_id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "action_time_confirmation_class": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "snapshot": {
                          "type": "object",
                          "properties": {
                            "subject": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "body": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "note": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "subject",
                            "body",
                            "note"
                          ],
                          "additionalProperties": false
                        },
                        "observed_at": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "NaN",
                                "Infinity",
                                "-Infinity"
                              ]
                            }
                          ]
                        },
                        "recorded_at": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "NaN",
                                "Infinity",
                                "-Infinity"
                              ]
                            }
                          ]
                        },
                        "external_message_id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "external_thread_id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "evidence_record_id",
                        "evidence_id",
                        "evidence_kind",
                        "source",
                        "outreach_attempt_id",
                        "draft_revision_id",
                        "recipient_override_revision_id",
                        "authorizing_preference_revision_id",
                        "action_time_confirmation_class",
                        "snapshot",
                        "observed_at",
                        "recorded_at",
                        "external_message_id",
                        "external_thread_id"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "has_more": {
                    "type": "boolean"
                  },
                  "continue_cursor": {
                    "type": "string"
                  }
                },
                "required": [
                  "page",
                  "has_more",
                  "continue_cursor"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "assignment",
              "readiness",
              "blockers",
              "copy",
              "override_state",
              "prepared_snapshot",
              "launch",
              "accepted_send_evidence"
            ],
            "additionalProperties": false
          }
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "gmail_execution": {}
      },
      "required": [
        "outreach_id",
        "campaign",
        "person",
        "prior_touch_summary",
        "channels",
        "updated_at",
        "gmail_execution"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "outreach"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_outreach_send_evidence

Cursor-page one assignment's immutable accepted send evidence, without raw confirmations or tokens. No writes.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "assignment_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "cursor": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string",
          "maxLength": 4000
        }
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "assignment_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "evidence": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "evidence_record_id": {
            "type": "string"
          },
          "evidence_id": {
            "type": "string"
          },
          "evidence_kind": {
            "type": "string",
            "enum": [
              "operator",
              "agent",
              "provider"
            ]
          },
          "source": {
            "type": "string"
          },
          "outreach_attempt_id": {
            "type": "string"
          },
          "draft_revision_id": {
            "type": "string"
          },
          "recipient_override_revision_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "authorizing_preference_revision_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "action_time_confirmation_class": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "snapshot": {
            "type": "object",
            "properties": {
              "subject": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "body": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "note": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "subject",
              "body",
              "note"
            ],
            "additionalProperties": false
          },
          "observed_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "recorded_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "external_message_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "external_thread_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "evidence_record_id",
          "evidence_id",
          "evidence_kind",
          "source",
          "outreach_attempt_id",
          "draft_revision_id",
          "recipient_override_revision_id",
          "authorizing_preference_revision_id",
          "action_time_confirmation_class",
          "snapshot",
          "observed_at",
          "recorded_at",
          "external_message_id",
          "external_thread_id"
        ],
        "additionalProperties": false
      }
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "type": "string"
    }
  },
  "required": [
    "evidence",
    "is_done",
    "continue_cursor"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

prepare_outreach

Prepare the exact current copy for native launch. Gmail issues an attempt-bound BCC; this neither sends nor records a send.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "assignment_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "draft_revision_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "recipient_override_revision_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1,
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "assignment_id",
    "draft_revision_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "prepared": {
      "type": "object",
      "properties": {
        "outreach_id": {
          "type": "string"
        },
        "assignment": {
          "type": "object",
          "properties": {
            "assignment_id": {
              "type": "string"
            },
            "channel": {
              "type": "string",
              "enum": [
                "gmail",
                "linkedin_invitation",
                "linkedin_message"
              ]
            },
            "draft_revision_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "outreach_attempt_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "recipient_override_revision_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "sent_state_version": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "status": {
              "type": "string"
            },
            "variation": {
              "type": "string",
              "enum": [
                "manual_email",
                "connection_request",
                "inmail_message"
              ]
            }
          },
          "required": [
            "assignment_id",
            "channel",
            "draft_revision_id",
            "outreach_attempt_id",
            "recipient_override_revision_id",
            "sent_state_version",
            "status",
            "variation"
          ],
          "additionalProperties": false
        },
        "prepared_snapshot": {
          "type": "object",
          "properties": {
            "outreach_attempt_id": {
              "type": "string"
            },
            "draft_revision_id": {
              "type": "string"
            },
            "recipient_override_revision_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "subject": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "body": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "note": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "sent_state_version": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            }
          },
          "required": [
            "outreach_attempt_id",
            "draft_revision_id",
            "recipient_override_revision_id",
            "subject",
            "body",
            "note",
            "sent_state_version"
          ],
          "additionalProperties": false
        },
        "launch": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "surface": {
                  "type": "string",
                  "enum": [
                    "gmail_compose"
                  ]
                },
                "ready": {
                  "type": "boolean",
                  "enum": [
                    true
                  ]
                },
                "values": {
                  "type": "object",
                  "properties": {
                    "to": {
                      "type": "string"
                    },
                    "subject": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "body": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tracking_bcc": {
                      "type": "object",
                      "properties": {
                        "required": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "correlation_address": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "issued_for_exact_prepared_attempt"
                          ]
                        }
                      },
                      "required": [
                        "required",
                        "correlation_address",
                        "status"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "to",
                    "subject",
                    "body",
                    "tracking_bcc"
                  ],
                  "additionalProperties": false
                },
                "operational": {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "type": "string",
                      "enum": [
                        "gmail"
                      ]
                    },
                    "expected_mailbox": {
                      "type": "string"
                    },
                    "expected_account": {
                      "type": "string"
                    },
                    "client_constructs_native_url": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "manual_mode_default": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "provider",
                    "expected_mailbox",
                    "expected_account",
                    "client_constructs_native_url",
                    "manual_mode_default"
                  ],
                  "additionalProperties": false
                },
                "stop_before": {
                  "type": "string",
                  "enum": [
                    "send"
                  ]
                }
              },
              "required": [
                "surface",
                "ready",
                "values",
                "operational",
                "stop_before"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "surface": {
                  "type": "string",
                  "enum": [
                    "linkedin_message",
                    "linkedin_invitation"
                  ]
                },
                "ready": {
                  "type": "boolean"
                },
                "values": {
                  "type": "object",
                  "properties": {
                    "recipient_vanity_name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "subject": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "body": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "note": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "recipient_vanity_name",
                    "subject",
                    "body",
                    "note"
                  ],
                  "additionalProperties": false
                },
                "operational": {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "type": "string",
                      "enum": [
                        "linkedin"
                      ]
                    },
                    "client_constructs_native_url": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "field_automation_allowed": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "state_inspection_allowed": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    }
                  },
                  "required": [
                    "provider",
                    "client_constructs_native_url",
                    "field_automation_allowed",
                    "state_inspection_allowed"
                  ],
                  "additionalProperties": false
                },
                "stop_before": {
                  "type": "string",
                  "enum": [
                    "field_automation_or_send"
                  ]
                }
              },
              "required": [
                "surface",
                "ready",
                "values",
                "operational",
                "stop_before"
              ],
              "additionalProperties": false
            }
          ]
        }
      },
      "required": [
        "outreach_id",
        "assignment",
        "prepared_snapshot",
        "launch"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "prepared"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_gmail_agent_send_preference

Read the current Gmail-only agent-send preference and bounded immutable audit history. No send authorization.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "preference": {
      "type": "object",
      "properties": {
        "channel": {
          "type": "string",
          "enum": [
            "gmail"
          ]
        },
        "enabled": {
          "type": "boolean"
        },
        "current": {},
        "manual_mode_available": {
          "type": "boolean"
        },
        "action_time_confirmation_required": {
          "type": "boolean"
        }
      },
      "required": [
        "channel",
        "enabled",
        "current",
        "manual_mode_available",
        "action_time_confirmation_required"
      ],
      "additionalProperties": false
    },
    "history": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "preference_revision_id": {
            "type": "string"
          },
          "operator_user_id": {
            "type": "string"
          },
          "channel": {
            "type": "string",
            "enum": [
              "gmail"
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "previous_preference_revision_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "changed_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          }
        },
        "required": [
          "preference_revision_id",
          "operator_user_id",
          "channel",
          "enabled",
          "previous_preference_revision_id",
          "reason",
          "changed_at"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "preference",
    "history"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

set_gmail_agent_send_preference

Enable or revoke the calling operator's audited Gmail-only agent-send preference with an exact confirmation. Preference alone never authorizes a send.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "confirmation": {
      "type": "string"
    },
    "reason": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "enabled",
    "confirmation"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "preference": {}
  },
  "required": [
    "preference"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

mark_outreach_sent

Record only observed native-send success against the exact prepared attempt. Manual and Gmail agent-confirmed evidence require their distinct action-time confirmations.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "assignment_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "outreach_attempt_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "draft_revision_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "recipient_override_revision_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1,
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "expected_state_version": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "evidence_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "send_proof_source": {
      "type": "string",
      "enum": [
        "manual",
        "agent_confirmed"
      ]
    },
    "subject_snapshot": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "body_snapshot": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "note_snapshot": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "native_send_observed": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "action_time_confirmation": {
      "type": "string"
    },
    "preference_revision_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "operator_evidence": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 6
    }
  },
  "required": [
    "assignment_id",
    "outreach_attempt_id",
    "draft_revision_id",
    "expected_state_version",
    "evidence_id",
    "send_proof_source",
    "subject_snapshot",
    "body_snapshot",
    "note_snapshot",
    "native_send_observed",
    "action_time_confirmation",
    "operator_evidence"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "properties": {
        "assignment": {
          "type": "object",
          "properties": {
            "assignment_id": {
              "type": "string"
            },
            "campaign_id": {
              "type": "string"
            },
            "person_id": {
              "type": "string"
            },
            "contact_point_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "contact_kind": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "normalized_contact_value": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "channel": {
              "type": "string",
              "enum": [
                "email",
                "linkedin"
              ]
            },
            "variation": {
              "type": "string",
              "enum": [
                "manual_email",
                "connection_request",
                "inmail_message"
              ]
            },
            "operator_user_id": {
              "type": "string"
            },
            "status": {
              "type": "string"
            },
            "draft_revision_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "recipient_override_revision_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "outreach_attempt_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "sent_state_version": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "reserved_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "expires_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "created_by_operator_user_id": {
              "type": "string"
            },
            "created_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "updated_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            }
          },
          "required": [
            "assignment_id",
            "campaign_id",
            "person_id",
            "contact_point_id",
            "contact_kind",
            "normalized_contact_value",
            "channel",
            "variation",
            "operator_user_id",
            "status",
            "draft_revision_id",
            "recipient_override_revision_id",
            "outreach_attempt_id",
            "sent_state_version",
            "reserved_at",
            "expires_at",
            "created_by_operator_user_id",
            "created_at",
            "updated_at"
          ],
          "additionalProperties": false
        },
        "attempt": {},
        "policy": {},
        "send_evidence_outcome": {
          "type": "string",
          "enum": [
            "accepted",
            "duplicate",
            "conflict"
          ]
        }
      },
      "required": [
        "assignment",
        "attempt",
        "policy",
        "send_evidence_outcome"
      ],
      "additionalProperties": false
    },
    "outreach": {
      "type": "object",
      "properties": {
        "outreach_id": {
          "type": "string"
        },
        "campaign": {},
        "person": {},
        "prior_touch_summary": {},
        "channels": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "assignment": {},
              "readiness": {
                "type": "string"
              },
              "blockers": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "copy": {},
              "override_state": {},
              "prepared_snapshot": {},
              "launch": {},
              "accepted_send_evidence": {
                "type": "object",
                "properties": {
                  "page": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "evidence_record_id": {
                          "type": "string"
                        },
                        "evidence_id": {
                          "type": "string"
                        },
                        "evidence_kind": {
                          "type": "string",
                          "enum": [
                            "operator",
                            "agent",
                            "provider"
                          ]
                        },
                        "source": {
                          "type": "string"
                        },
                        "outreach_attempt_id": {
                          "type": "string"
                        },
                        "draft_revision_id": {
                          "type": "string"
                        },
                        "recipient_override_revision_id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "authorizing_preference_revision_id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "action_time_confirmation_class": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "snapshot": {
                          "type": "object",
                          "properties": {
                            "subject": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "body": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "note": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "subject",
                            "body",
                            "note"
                          ],
                          "additionalProperties": false
                        },
                        "observed_at": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "NaN",
                                "Infinity",
                                "-Infinity"
                              ]
                            }
                          ]
                        },
                        "recorded_at": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "NaN",
                                "Infinity",
                                "-Infinity"
                              ]
                            }
                          ]
                        },
                        "external_message_id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "external_thread_id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "evidence_record_id",
                        "evidence_id",
                        "evidence_kind",
                        "source",
                        "outreach_attempt_id",
                        "draft_revision_id",
                        "recipient_override_revision_id",
                        "authorizing_preference_revision_id",
                        "action_time_confirmation_class",
                        "snapshot",
                        "observed_at",
                        "recorded_at",
                        "external_message_id",
                        "external_thread_id"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "has_more": {
                    "type": "boolean"
                  },
                  "continue_cursor": {
                    "type": "string"
                  }
                },
                "required": [
                  "page",
                  "has_more",
                  "continue_cursor"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "assignment",
              "readiness",
              "blockers",
              "copy",
              "override_state",
              "prepared_snapshot",
              "launch",
              "accepted_send_evidence"
            ],
            "additionalProperties": false
          }
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "gmail_execution": {}
      },
      "required": [
        "outreach_id",
        "campaign",
        "person",
        "prior_touch_summary",
        "channels",
        "updated_at",
        "gmail_execution"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "result",
    "outreach"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_outreach_recipient_override

Read the exact current per-recipient override, conflict and stale state for an assigned item. No writes.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "assignment_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "assignment_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "override_state": {
      "type": "object",
      "properties": {
        "current": {},
        "conflict": {},
        "stale": {
          "type": "boolean"
        },
        "stale_reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "recovery": {}
      },
      "required": [
        "current",
        "conflict",
        "stale",
        "stale_reason",
        "recovery"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "override_state"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

edit_outreach_recipient_override

Save an immutable recipient-specific revision against exact base and concurrency identity, returning persisted conflict/readback. Sends no messages.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "assignment_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "base_campaign_revision": {
      "type": "integer",
      "maximum": 9007199254740991,
      "exclusiveMinimum": 0
    },
    "deterministic_draft_revision_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "expected_override_revision_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1,
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "expected_concurrency_token": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1,
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "subject": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "body": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "assignment_id",
    "base_campaign_revision",
    "deterministic_draft_revision_id",
    "expected_override_revision_id",
    "expected_concurrency_token"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "saved",
            "conflict"
          ]
        },
        "override": {},
        "conflict": {}
      },
      "required": [
        "status",
        "override",
        "conflict"
      ],
      "additionalProperties": false
    },
    "override_state": {
      "type": "object",
      "properties": {
        "current": {},
        "conflict": {},
        "stale": {
          "type": "boolean"
        },
        "stale_reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "recovery": {}
      },
      "required": [
        "current",
        "conflict",
        "stale",
        "stale_reason",
        "recovery"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "result",
    "override_state"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

create_search

Uses paid provider credits. Call it only when the user explicitly asks for provider discovery, a refresh, or a search run, or after your own research could not establish the identity, and never in loops or batches the user did not ask for. On capacity_exhausted, stop calling paid tools, continue with your own research and writes that make no provider calls, and report that the research quota needs restoring. Use only to discover new people or companies outside the current SCRYU records. Do not use this method to retrieve, filter, count, or summarize records already saved in SCRYU. This provider-neutral discovery path may create or enrich canonical records through search/reconcile work. People searches require a structured person name and accept optional company, title, location, and profile URL hints; they execute exact-person discovery. Company and mixed searches require query. Omitted count defaults to 10 for those modes. It does not expose raw provider knobs. Poll get_search until the run is complete before treating readback as final.

searches

Input schema
{
  "type": "object",
  "properties": {
    "label": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "query": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "target_mode": {
      "type": "string",
      "enum": [
        "people_and_companies",
        "people",
        "companies"
      ]
    },
    "person": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        "company": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        "title": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        "location": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        "profile_url": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "label"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "search": {
      "type": "object",
      "properties": {
        "search_id": {
          "type": "string"
        },
        "family_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "execution_kind": {
          "type": "string",
          "enum": [
            "discovery",
            "exact_person"
          ]
        },
        "exact_person_request": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "company": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "location": {
                  "type": "string"
                },
                "profile_url": {
                  "type": "string"
                }
              },
              "required": [
                "name"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "exact_person_outcome": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "matched",
                "not_found",
                "ambiguous",
                "conflict",
                "provider_error",
                "capacity_exhausted"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "label": {
          "type": "string"
        },
        "query": {
          "type": "string"
        },
        "requested_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "target_mode": {
          "type": "string",
          "enum": [
            "people_and_companies",
            "people",
            "companies"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "running",
            "idle",
            "paused",
            "reconciling",
            "complete",
            "failed"
          ]
        },
        "display_status": {
          "type": "string"
        },
        "last_activity_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "last_event_label": {
          "type": "string"
        },
        "processing_error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "started_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "person_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "company_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "match_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "evidence_reference_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "effect_summary": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "created": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "matched_existing": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "enriched_existing": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "unchanged": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "skipped": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "failed": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "created",
                "matched_existing",
                "enriched_existing",
                "unchanged",
                "skipped",
                "failed"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "search_id",
        "family_key",
        "execution_kind",
        "exact_person_request",
        "exact_person_outcome",
        "label",
        "query",
        "requested_count",
        "target_mode",
        "status",
        "display_status",
        "last_activity_at",
        "last_event_label",
        "processing_error",
        "created_at",
        "started_at",
        "completed_at",
        "person_count",
        "company_count",
        "match_count",
        "evidence_reference_count",
        "effect_summary",
        "truncated"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "search"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_searches

List recent SCRYU search runs, newest first. Rows carry search_id, label, status, target_mode, match_count, created_at and completed_at; include adds named others (for example query or person_count). get_search has the full run. Read-only.

searches / read-only

Input schema
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "include": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "family_key",
          "execution_kind",
          "exact_person_request",
          "exact_person_outcome",
          "query",
          "requested_count",
          "display_status",
          "last_activity_at",
          "last_event_label",
          "processing_error",
          "started_at",
          "person_count",
          "company_count",
          "evidence_reference_count",
          "effect_summary",
          "truncated"
        ]
      },
      "minItems": 1,
      "description": "Optional fields to add; every other field is always returned."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "searches": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "search_id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "running",
              "idle",
              "paused",
              "reconciling",
              "complete",
              "failed"
            ]
          },
          "target_mode": {
            "type": "string",
            "enum": [
              "people_and_companies",
              "people",
              "companies"
            ]
          },
          "match_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "family_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "execution_kind": {
            "type": "string",
            "enum": [
              "discovery",
              "exact_person"
            ]
          },
          "exact_person_request": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "company": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "location": {
                    "type": "string"
                  },
                  "profile_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "exact_person_outcome": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "matched",
                  "not_found",
                  "ambiguous",
                  "conflict",
                  "provider_error",
                  "capacity_exhausted"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "query": {
            "type": "string"
          },
          "requested_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "display_status": {
            "type": "string"
          },
          "last_activity_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "last_event_label": {
            "type": "string"
          },
          "processing_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "started_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "person_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "company_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "evidence_reference_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "effect_summary": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "created": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "matched_existing": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "enriched_existing": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unchanged": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "skipped": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "failed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "created",
                  "matched_existing",
                  "enriched_existing",
                  "unchanged",
                  "skipped",
                  "failed"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "required": [
          "search_id",
          "label",
          "status",
          "target_mode",
          "match_count",
          "created_at",
          "completed_at"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "searches"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_search

Load the structured detail readback for a SCRYU search run, including target mode, status, people, companies, matches, activity, and summary counts. Pass matchCursor (match_cursor in MCP) to continue the bounded matches page. Read-only.

searches / read-only

Input schema
{
  "type": "object",
  "properties": {
    "search_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "match_cursor": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "search_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "search": {
      "type": "object",
      "properties": {
        "search_id": {
          "type": "string"
        },
        "family_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "execution_kind": {
          "type": "string",
          "enum": [
            "discovery",
            "exact_person"
          ]
        },
        "exact_person_request": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "company": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "location": {
                  "type": "string"
                },
                "profile_url": {
                  "type": "string"
                }
              },
              "required": [
                "name"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "exact_person_outcome": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "matched",
                "not_found",
                "ambiguous",
                "conflict",
                "provider_error",
                "capacity_exhausted"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "label": {
          "type": "string"
        },
        "query": {
          "type": "string"
        },
        "requested_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "target_mode": {
          "type": "string",
          "enum": [
            "people_and_companies",
            "people",
            "companies"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "running",
            "idle",
            "paused",
            "reconciling",
            "complete",
            "failed"
          ]
        },
        "display_status": {
          "type": "string"
        },
        "last_activity_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "last_event_label": {
          "type": "string"
        },
        "processing_error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "started_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "people": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "person_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "current_title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current_company_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current_company_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "primary_email_status": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "unverified",
                      "verified",
                      "bounced",
                      "invalid",
                      "opted_out",
                      "stale",
                      "do_not_contact"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "person_id",
              "name",
              "current_title",
              "current_company_id",
              "current_company_name",
              "primary_email_status"
            ],
            "additionalProperties": false
          }
        },
        "companies": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "company_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "primary_domain": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "hq": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "size_band": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "known_relevant_people_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "company_id",
              "name",
              "primary_domain",
              "hq",
              "size_band",
              "known_relevant_people_count"
            ],
            "additionalProperties": false
          }
        },
        "matches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "match_id": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "source_url": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "person_id": {
                "type": "string"
              },
              "company_id": {
                "type": "string"
              },
              "person_name": {
                "type": "string"
              },
              "person_position": {
                "type": "string"
              },
              "person_location": {
                "type": "string"
              },
              "company_name": {
                "type": "string"
              },
              "company_location": {
                "type": "string"
              },
              "raw_employer_name": {
                "type": "string"
              },
              "person_effect": {
                "type": "string"
              },
              "person_changed_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "company_effect": {
                "type": "string"
              },
              "company_changed_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "company_resolution_status": {
                "type": "string",
                "enum": [
                  "resolved",
                  "needs_confirmation",
                  "unresolved",
                  "conflict"
                ]
              },
              "company_resolution_reason": {
                "type": "string"
              },
              "company_candidate_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "effect_error": {
                "type": "string"
              },
              "evaluation_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "evidence_reference_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "match_id",
              "source",
              "kind",
              "evaluation_count",
              "evidence_reference_count",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "activity": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "event_id": {
                "type": "string"
              },
              "search_id": {
                "type": "string"
              },
              "event_type": {
                "type": "string"
              },
              "occurred_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "processed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "processed",
                  "failed"
                ]
              },
              "summary": {
                "type": "string"
              },
              "count_scope": {
                "type": "string",
                "enum": [
                  "match_page"
                ]
              },
              "match_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "person_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "company_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "error": {
                "type": "string"
              }
            },
            "required": [
              "event_id",
              "search_id",
              "event_type",
              "occurred_at",
              "processed_at",
              "status",
              "summary",
              "count_scope"
            ],
            "additionalProperties": false
          }
        },
        "summary": {
          "type": "object",
          "properties": {
            "match_count": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "evaluation_count": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "evidence_reference_count": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "page": {
              "type": "object",
              "properties": {
                "match_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "person_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "company_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "effect_summary": {
                  "type": "object",
                  "properties": {
                    "created": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "matched_existing": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "enriched_existing": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "unchanged": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "skipped": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "failed": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "created",
                    "matched_existing",
                    "enriched_existing",
                    "unchanged",
                    "skipped",
                    "failed"
                  ],
                  "additionalProperties": false
                },
                "coverage": {
                  "type": "object",
                  "properties": {
                    "people": {
                      "type": "object",
                      "properties": {
                        "rich": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "partial": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "skeleton": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "needs_refresh": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "rich",
                        "partial",
                        "skeleton",
                        "needs_refresh"
                      ],
                      "additionalProperties": false
                    },
                    "companies": {
                      "type": "object",
                      "properties": {
                        "rich": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "partial": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "skeleton": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "needs_refresh": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "rich",
                        "partial",
                        "skeleton",
                        "needs_refresh"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "people",
                    "companies"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "match_count",
                "person_count",
                "company_count",
                "effect_summary",
                "coverage"
              ],
              "additionalProperties": false
            },
            "company_refresh": {
              "type": "object",
              "properties": {
                "requested_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completed_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "requested": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "refreshed": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "failed": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "requested_at",
                "completed_at",
                "requested",
                "refreshed",
                "failed"
              ],
              "additionalProperties": false
            },
            "person_refresh": {
              "type": "object",
              "properties": {
                "requested_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completed_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "requested": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "refreshed": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "failed": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "requested_at",
                "completed_at",
                "requested",
                "refreshed",
                "failed"
              ],
              "additionalProperties": false
            },
            "last_activity_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "last_event_label": {
              "type": "string"
            },
            "processing_error": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "truncated": {
              "type": "object",
              "properties": {
                "matches": {
                  "type": "boolean"
                },
                "people": {
                  "type": "boolean"
                },
                "companies": {
                  "type": "boolean"
                }
              },
              "required": [
                "matches",
                "people",
                "companies"
              ],
              "additionalProperties": false
            },
            "matches_continue_cursor": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "matches_has_more": {
              "type": "boolean"
            }
          },
          "required": [
            "match_count",
            "evaluation_count",
            "evidence_reference_count",
            "page",
            "company_refresh",
            "person_refresh",
            "last_activity_at",
            "last_event_label",
            "processing_error",
            "truncated",
            "matches_continue_cursor",
            "matches_has_more"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "search_id",
        "family_key",
        "execution_kind",
        "exact_person_request",
        "exact_person_outcome",
        "label",
        "query",
        "requested_count",
        "target_mode",
        "status",
        "display_status",
        "last_activity_at",
        "last_event_label",
        "processing_error",
        "created_at",
        "started_at",
        "completed_at",
        "people",
        "companies",
        "matches",
        "activity",
        "summary"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "search"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_match_evaluations

Cursor-page every criterion evaluation for one SCRYU match; match views carry only evaluation_count. Rows carry evaluation_id, criterion and satisfied; include adds reasoning. Read-only.

searches / read-only

Input schema
{
  "type": "object",
  "properties": {
    "match_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "cursor": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "include": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "reasoning"
        ]
      },
      "minItems": 1,
      "description": "Optional fields to add; every other field is always returned."
    }
  },
  "required": [
    "match_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "evaluations": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "evaluation_id": {
                "type": "string"
              },
              "criterion": {
                "type": "string"
              },
              "satisfied": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "reasoning": {
                "type": "string"
              }
            },
            "required": [
              "evaluation_id",
              "criterion",
              "satisfied"
            ],
            "additionalProperties": false
          }
        },
        "continue_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "has_more": {
          "type": "boolean"
        },
        "unavailable": {
          "type": "boolean"
        },
        "expected_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "items",
        "continue_cursor",
        "has_more",
        "unavailable"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "evaluations"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_match_evidence_references

Cursor-page every match-level and evaluation-level evidence reference for one SCRYU match; match views carry only evidence_reference_count. Rows carry reference_id, evaluation_id (null for match-level evidence) and url; include adds title and snippet. Read-only.

searches / read-only

Input schema
{
  "type": "object",
  "properties": {
    "match_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "cursor": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "include": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "title",
          "snippet"
        ]
      },
      "minItems": 1,
      "description": "Optional fields to add; every other field is always returned."
    }
  },
  "required": [
    "match_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "evidence_references": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "reference_id": {
                "type": "string"
              },
              "evaluation_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "url": {
                "type": "string",
                "pattern": "^https?:\\/\\/"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "snippet": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "reference_id",
              "evaluation_id",
              "url"
            ],
            "additionalProperties": false
          }
        },
        "continue_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "has_more": {
          "type": "boolean"
        },
        "unavailable": {
          "type": "boolean"
        },
        "expected_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "invalid_reference_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "items",
        "continue_cursor",
        "has_more",
        "unavailable"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "evidence_references"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

find_and_save_companies

Uses paid provider credits. Call it only when the user explicitly asks for provider discovery, a refresh, or a search run, or after your own research could not establish the identity, and never in loops or batches the user did not ask for. On capacity_exhausted, stop calling paid tools, continue with your own research and writes that make no provider calls, and report that the research quota needs restoring. Intake or enrich company records from a clean canonical anchor. This is a write path, not an existing-record lookup method. A missing company has no other MCP path: research it yourself and tell the user instead of calling this on your own initiative. Pass existingCompanyId (existing_company_id in MCP) to enrich a specific saved company. Use a company name, official domain, or official URL; omit ranking text and descriptive blurbs from the anchor.

companies

Input schema
{
  "type": "object",
  "properties": {
    "existing_company_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "anchor": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "hints": {
      "type": "object",
      "properties": {
        "domain": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        "url": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        "linkedin_url": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        }
      },
      "additionalProperties": false
    },
    "notes": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "max_matches": {
      "type": "integer",
      "minimum": 1,
      "maximum": 25
    },
    "estimated_provider_cost_cap_dollars": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1,
      "description": "Estimated US-dollar cap for this intake's web research calls. Requires hints or existingCompanyId. Research stops and no company is saved when the next call's estimate would exceed the cap, or a call reports no cost or more than its estimate. A call can cost more than its estimate, so this is not a hard ceiling. Identity adjudication is not covered. Every call is recorded in providerSpend."
    }
  },
  "required": [
    "anchor"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "intake_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "saved_one",
        "saved_multiple",
        "not_found"
      ]
    },
    "trace_id": {
      "type": "string"
    },
    "records": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "company_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "primary_domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "website_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "linkedin_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "hq": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "ticker": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "industry": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "save_mode": {
            "type": "string",
            "enum": [
              "enriched",
              "identity_resolved",
              "minimal_fallback"
            ]
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "candidate_search_failed",
                    "candidate_save_failed",
                    "company_identity_mismatch",
                    "company_identity_required",
                    "company_preflight_review_required",
                    "foundation_refresh_failed",
                    "foundation_enrichment_unavailable"
                  ]
                },
                "stage": {
                  "type": "string",
                  "enum": [
                    "discovery",
                    "identity",
                    "foundation"
                  ]
                },
                "severity": {
                  "type": "string",
                  "enum": [
                    "warning",
                    "error"
                  ]
                },
                "message": {
                  "type": "string"
                },
                "candidate_label": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "record_id": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "code",
                "stage",
                "severity",
                "message",
                "candidate_label",
                "record_id"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "company_id",
          "name",
          "primary_domain",
          "website_url",
          "linkedin_url",
          "hq",
          "ticker",
          "industry",
          "save_mode",
          "issues"
        ],
        "additionalProperties": false
      }
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "candidate_search_failed",
              "candidate_save_failed",
              "company_identity_mismatch",
              "company_identity_required",
              "company_preflight_review_required",
              "foundation_refresh_failed",
              "foundation_enrichment_unavailable"
            ]
          },
          "stage": {
            "type": "string",
            "enum": [
              "discovery",
              "identity",
              "foundation"
            ]
          },
          "severity": {
            "type": "string",
            "enum": [
              "warning",
              "error"
            ]
          },
          "message": {
            "type": "string"
          },
          "candidate_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "code",
          "stage",
          "severity",
          "message",
          "candidate_label",
          "record_id"
        ],
        "additionalProperties": false
      }
    },
    "receipt": {
      "type": "object",
      "properties": {
        "attempted_candidate_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "saved_record_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "issue_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "attempted_candidate_count",
        "saved_record_count",
        "issue_count"
      ],
      "additionalProperties": false
    },
    "provider_spend": {
      "type": "object",
      "properties": {
        "estimated_cap_dollars": {
          "type": "number"
        },
        "committed_dollars": {
          "type": "number"
        },
        "measured_dollars": {
          "type": "number"
        },
        "stopped_reason": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "cap_reached",
                "call_limit_reached",
                "cost_unmeasured",
                "cost_exceeded_reserve"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "calls": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "call_id": {
                "type": "string"
              },
              "route": {
                "type": "string",
                "enum": [
                  "structured_search",
                  "contents_summary"
                ]
              },
              "units": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "status": {
                "type": "string",
                "enum": [
                  "reserved",
                  "measured",
                  "unmeasured",
                  "failed",
                  "refused"
                ]
              },
              "reserved_dollars": {
                "type": "number"
              },
              "measured_dollars": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "provider_request_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "call_id",
              "route",
              "units",
              "status",
              "reserved_dollars",
              "measured_dollars",
              "provider_request_id"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "estimated_cap_dollars",
        "committed_dollars",
        "measured_dollars",
        "stopped_reason",
        "calls"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "intake_id",
    "status",
    "trace_id",
    "records",
    "issues",
    "receipt"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_identity_intake

Read one durable identity acquisition or decision intake. Candidate readback is bounded and reports candidatesTruncated.

people / read-only

Input schema
{
  "type": "object",
  "properties": {
    "intake_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "candidate_limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "intake_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "intake": {
      "type": "object",
      "properties": {
        "intake_id": {
          "type": "string"
        },
        "entity_kind": {
          "type": "string",
          "enum": [
            "company",
            "person"
          ]
        },
        "operation_kind": {
          "type": "string",
          "enum": [
            "acquire_company",
            "acquire_person",
            "resolve_employer",
            "adjudicate_search"
          ]
        },
        "input": {},
        "origin": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "direct",
                "search",
                "child"
              ]
            },
            "search_id": {
              "type": "string"
            },
            "parent_intake_id": {
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        "owner_entity_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "running",
            "needs_decision",
            "succeeded",
            "failed",
            "abandoned"
          ]
        },
        "candidates": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "entity_id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "identity_key": {
                "type": "string"
              },
              "identity_fingerprint": {
                "type": "string"
              },
              "entity_version": {
                "type": "string"
              },
              "entity_updated_at": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "NaN",
                      "Infinity",
                      "-Infinity"
                    ]
                  }
                ]
              },
              "evidence_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "label",
              "identity_key",
              "identity_fingerprint",
              "evidence_urls"
            ],
            "additionalProperties": false
          }
        },
        "candidates_truncated": {
          "type": "boolean"
        },
        "recommendation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "attempt_count": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "max_attempts": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "deadline_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "failure": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "failure_code": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "staging_effect_blocked",
                "credits_exhausted",
                "capacity_exhausted",
                "rate_limited",
                "timeout",
                "provider_unavailable",
                "authentication",
                "request_rejected",
                "provider_failure",
                "profile_not_fetchable",
                "employer_mismatch",
                "person_identity_conflict",
                "person_not_found",
                "person_profile_mismatch",
                "person_target_identity_refusal",
                "deadline_reached",
                "execution_limit_reached",
                "intake_capacity_exceeded",
                "execution_failed",
                "unexpected"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "failure_retryable": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "decision": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ]
        },
        "last_re_adjudication": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "attempt_id": {
                  "type": "string"
                },
                "idempotency_key": {
                  "type": "string"
                },
                "operator_user_id": {
                  "type": "string"
                },
                "reason": {
                  "type": "string"
                },
                "search_id": {
                  "type": "string"
                },
                "lease_id": {
                  "type": "string"
                },
                "lease_expires_at": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": [
                        "NaN",
                        "Infinity",
                        "-Infinity"
                      ]
                    }
                  ]
                },
                "created_at": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": [
                        "NaN",
                        "Infinity",
                        "-Infinity"
                      ]
                    }
                  ]
                }
              },
              "required": [
                "attempt_id",
                "idempotency_key",
                "operator_user_id",
                "reason",
                "lease_id",
                "lease_expires_at",
                "created_at"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "last_retry": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "operator_user_id": {
                  "type": "string"
                },
                "reason": {
                  "type": "string"
                },
                "from_status": {
                  "type": "string",
                  "enum": [
                    "failed",
                    "needs_decision"
                  ]
                },
                "retried_at": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": [
                        "NaN",
                        "Infinity",
                        "-Infinity"
                      ]
                    }
                  ]
                }
              },
              "required": [
                "operator_user_id",
                "reason",
                "from_status",
                "retried_at"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "result_company_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "result_person_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "terminal_response": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ]
        },
        "terminal_response_truncated": {
          "type": "boolean",
          "enum": [
            true
          ]
        },
        "created_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "intake_id",
        "entity_kind",
        "operation_kind",
        "input",
        "origin",
        "owner_entity_id",
        "status",
        "candidates",
        "candidates_truncated",
        "recommendation",
        "reason",
        "attempt_count",
        "max_attempts",
        "deadline_at",
        "failure",
        "failure_retryable",
        "decision",
        "last_re_adjudication",
        "last_retry",
        "result_company_ids",
        "result_person_ids",
        "terminal_response",
        "created_at",
        "updated_at",
        "completed_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "intake"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

find_and_save_company_batch

Uses paid provider credits. Call it only when the user explicitly asks for provider discovery, a refresh, or a search run, or after your own research could not establish the identity, and never in loops or batches the user did not ask for. On capacity_exhausted, stop calling paid tools, continue with your own research and writes that make no provider calls, and report that the research quota needs restoring. Find and save up to 100 company anchors through the duplicate-aware company save path. Items run sequentially with per-item receipts. Repeated deterministic anchors are skipped before backend work. Use clean anchors, domains, or URLs; pass existing_company_id per item when enriching a known record.

companies

Input schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "existing_company_id": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "anchor": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "hints": {
            "type": "object",
            "properties": {
              "domain": {
                "type": "string",
                "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
                "minLength": 1
              },
              "url": {
                "type": "string",
                "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
                "minLength": 1
              },
              "linkedin_url": {
                "type": "string",
                "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "notes": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "max_matches": {
            "type": "integer",
            "minimum": 1,
            "maximum": 25
          },
          "estimated_provider_cost_cap_dollars": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1,
            "description": "Estimated US-dollar cap for this intake's web research calls. Requires hints or existingCompanyId. Research stops and no company is saved when the next call's estimate would exceed the cap, or a call reports no cost or more than its estimate. A call can cost more than its estimate, so this is not a hard ceiling. Identity adjudication is not covered. Every call is recorded in providerSpend."
          }
        },
        "required": [
          "anchor"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 100
    }
  },
  "required": [
    "items"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "completed"
      ]
    },
    "results": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "anchor": {
                "type": "string"
              },
              "next_action": {
                "type": "string",
                "enum": [
                  "none",
                  "save_company",
                  "enrich_existing_company",
                  "review_company_candidates",
                  "provide_identity_or_existing_company_id",
                  "skip_duplicate_anchor",
                  "retry_preflight",
                  "retry_save"
                ]
              },
              "next_action_args": {
                "type": "object",
                "properties": {
                  "anchor": {
                    "type": "string"
                  },
                  "existing_company_id": {
                    "type": "string"
                  },
                  "company_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "duplicate_of_index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "duplicate_key": {
                    "type": "string"
                  },
                  "match_key_kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "existing_company_id",
                          "source_company_url",
                          "primary_domain",
                          "exact_name",
                          "legal_name",
                          "name_search",
                          "llm_identity"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "match_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "type": "string",
                "enum": [
                  "succeeded"
                ]
              },
              "preflight": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "needs_save",
                      "route_to_existing",
                      "ambiguous_existing",
                      "identity_required"
                    ]
                  },
                  "recommended_action": {
                    "type": "string",
                    "enum": [
                      "save",
                      "enrich_existing",
                      "operator_review",
                      "provide_identity_or_existing_company_id"
                    ]
                  },
                  "reason": {
                    "type": "string"
                  },
                  "match_key_kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "existing_company_id",
                          "source_company_url",
                          "primary_domain",
                          "exact_name",
                          "legal_name",
                          "name_search",
                          "llm_identity"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "match_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "selected_company_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "candidate_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "company_id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "primary_domain": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "source_company_url": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "company_id",
                        "name",
                        "primary_domain",
                        "source_company_url"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "candidates_truncated": {
                    "type": "boolean"
                  },
                  "normalized_anchor": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "normalized_name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "domain": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "normalized_name",
                      "domain",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "status",
                  "recommended_action",
                  "reason",
                  "match_key_kind",
                  "match_key",
                  "selected_company_id",
                  "candidate_count",
                  "candidates",
                  "candidates_truncated",
                  "normalized_anchor"
                ],
                "additionalProperties": false
              },
              "result": {
                "type": "object",
                "properties": {
                  "intake_id": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "saved_one",
                      "saved_multiple",
                      "not_found"
                    ]
                  },
                  "trace_id": {
                    "type": "string"
                  },
                  "records": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "company_id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "primary_domain": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "website_url": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "linkedin_url": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "hq": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "ticker": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "industry": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "save_mode": {
                          "type": "string",
                          "enum": [
                            "enriched",
                            "identity_resolved",
                            "minimal_fallback"
                          ]
                        },
                        "issues": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "candidate_search_failed",
                                  "candidate_save_failed",
                                  "company_identity_mismatch",
                                  "company_identity_required",
                                  "company_preflight_review_required",
                                  "foundation_refresh_failed",
                                  "foundation_enrichment_unavailable"
                                ]
                              },
                              "stage": {
                                "type": "string",
                                "enum": [
                                  "discovery",
                                  "identity",
                                  "foundation"
                                ]
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "warning",
                                  "error"
                                ]
                              },
                              "message": {
                                "type": "string"
                              },
                              "candidate_label": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "record_id": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "code",
                              "stage",
                              "severity",
                              "message",
                              "candidate_label",
                              "record_id"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "company_id",
                        "name",
                        "primary_domain",
                        "website_url",
                        "linkedin_url",
                        "hq",
                        "ticker",
                        "industry",
                        "save_mode",
                        "issues"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "issues": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "candidate_search_failed",
                            "candidate_save_failed",
                            "company_identity_mismatch",
                            "company_identity_required",
                            "company_preflight_review_required",
                            "foundation_refresh_failed",
                            "foundation_enrichment_unavailable"
                          ]
                        },
                        "stage": {
                          "type": "string",
                          "enum": [
                            "discovery",
                            "identity",
                            "foundation"
                          ]
                        },
                        "severity": {
                          "type": "string",
                          "enum": [
                            "warning",
                            "error"
                          ]
                        },
                        "message": {
                          "type": "string"
                        },
                        "candidate_label": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "record_id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "stage",
                        "severity",
                        "message",
                        "candidate_label",
                        "record_id"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "receipt": {
                    "type": "object",
                    "properties": {
                      "attempted_candidate_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "saved_record_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "issue_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "attempted_candidate_count",
                      "saved_record_count",
                      "issue_count"
                    ],
                    "additionalProperties": false
                  },
                  "provider_spend": {
                    "type": "object",
                    "properties": {
                      "estimated_cap_dollars": {
                        "type": "number"
                      },
                      "committed_dollars": {
                        "type": "number"
                      },
                      "measured_dollars": {
                        "type": "number"
                      },
                      "stopped_reason": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "cap_reached",
                              "call_limit_reached",
                              "cost_unmeasured",
                              "cost_exceeded_reserve"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "calls": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "call_id": {
                              "type": "string"
                            },
                            "route": {
                              "type": "string",
                              "enum": [
                                "structured_search",
                                "contents_summary"
                              ]
                            },
                            "units": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "reserved",
                                "measured",
                                "unmeasured",
                                "failed",
                                "refused"
                              ]
                            },
                            "reserved_dollars": {
                              "type": "number"
                            },
                            "measured_dollars": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "provider_request_id": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "call_id",
                            "route",
                            "units",
                            "status",
                            "reserved_dollars",
                            "measured_dollars",
                            "provider_request_id"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "estimated_cap_dollars",
                      "committed_dollars",
                      "measured_dollars",
                      "stopped_reason",
                      "calls"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "intake_id",
                  "status",
                  "trace_id",
                  "records",
                  "issues",
                  "receipt"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "index",
              "anchor",
              "next_action",
              "status",
              "result"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "anchor": {
                "type": "string"
              },
              "next_action": {
                "type": "string",
                "enum": [
                  "none",
                  "save_company",
                  "enrich_existing_company",
                  "review_company_candidates",
                  "provide_identity_or_existing_company_id",
                  "skip_duplicate_anchor",
                  "retry_preflight",
                  "retry_save"
                ]
              },
              "next_action_args": {
                "type": "object",
                "properties": {
                  "anchor": {
                    "type": "string"
                  },
                  "existing_company_id": {
                    "type": "string"
                  },
                  "company_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "duplicate_of_index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "duplicate_key": {
                    "type": "string"
                  },
                  "match_key_kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "existing_company_id",
                          "source_company_url",
                          "primary_domain",
                          "exact_name",
                          "legal_name",
                          "name_search",
                          "llm_identity"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "match_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "type": "string",
                "enum": [
                  "failed"
                ]
              },
              "preflight": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "needs_save",
                      "route_to_existing",
                      "ambiguous_existing",
                      "identity_required"
                    ]
                  },
                  "recommended_action": {
                    "type": "string",
                    "enum": [
                      "save",
                      "enrich_existing",
                      "operator_review",
                      "provide_identity_or_existing_company_id"
                    ]
                  },
                  "reason": {
                    "type": "string"
                  },
                  "match_key_kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "existing_company_id",
                          "source_company_url",
                          "primary_domain",
                          "exact_name",
                          "legal_name",
                          "name_search",
                          "llm_identity"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "match_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "selected_company_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "candidate_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "company_id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "primary_domain": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "source_company_url": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "company_id",
                        "name",
                        "primary_domain",
                        "source_company_url"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "candidates_truncated": {
                    "type": "boolean"
                  },
                  "normalized_anchor": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "normalized_name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "domain": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "normalized_name",
                      "domain",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "status",
                  "recommended_action",
                  "reason",
                  "match_key_kind",
                  "match_key",
                  "selected_company_id",
                  "candidate_count",
                  "candidates",
                  "candidates_truncated",
                  "normalized_anchor"
                ],
                "additionalProperties": false
              },
              "result": {
                "type": "object",
                "properties": {
                  "intake_id": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "saved_one",
                      "saved_multiple",
                      "not_found"
                    ]
                  },
                  "trace_id": {
                    "type": "string"
                  },
                  "records": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "company_id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "primary_domain": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "website_url": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "linkedin_url": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "hq": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "ticker": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "industry": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "save_mode": {
                          "type": "string",
                          "enum": [
                            "enriched",
                            "identity_resolved",
                            "minimal_fallback"
                          ]
                        },
                        "issues": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "candidate_search_failed",
                                  "candidate_save_failed",
                                  "company_identity_mismatch",
                                  "company_identity_required",
                                  "company_preflight_review_required",
                                  "foundation_refresh_failed",
                                  "foundation_enrichment_unavailable"
                                ]
                              },
                              "stage": {
                                "type": "string",
                                "enum": [
                                  "discovery",
                                  "identity",
                                  "foundation"
                                ]
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "warning",
                                  "error"
                                ]
                              },
                              "message": {
                                "type": "string"
                              },
                              "candidate_label": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "record_id": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "code",
                              "stage",
                              "severity",
                              "message",
                              "candidate_label",
                              "record_id"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "company_id",
                        "name",
                        "primary_domain",
                        "website_url",
                        "linkedin_url",
                        "hq",
                        "ticker",
                        "industry",
                        "save_mode",
                        "issues"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "issues": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "candidate_search_failed",
                            "candidate_save_failed",
                            "company_identity_mismatch",
                            "company_identity_required",
                            "company_preflight_review_required",
                            "foundation_refresh_failed",
                            "foundation_enrichment_unavailable"
                          ]
                        },
                        "stage": {
                          "type": "string",
                          "enum": [
                            "discovery",
                            "identity",
                            "foundation"
                          ]
                        },
                        "severity": {
                          "type": "string",
                          "enum": [
                            "warning",
                            "error"
                          ]
                        },
                        "message": {
                          "type": "string"
                        },
                        "candidate_label": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "record_id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "stage",
                        "severity",
                        "message",
                        "candidate_label",
                        "record_id"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "receipt": {
                    "type": "object",
                    "properties": {
                      "attempted_candidate_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "saved_record_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "issue_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "attempted_candidate_count",
                      "saved_record_count",
                      "issue_count"
                    ],
                    "additionalProperties": false
                  },
                  "provider_spend": {
                    "type": "object",
                    "properties": {
                      "estimated_cap_dollars": {
                        "type": "number"
                      },
                      "committed_dollars": {
                        "type": "number"
                      },
                      "measured_dollars": {
                        "type": "number"
                      },
                      "stopped_reason": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "cap_reached",
                              "call_limit_reached",
                              "cost_unmeasured",
                              "cost_exceeded_reserve"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "calls": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "call_id": {
                              "type": "string"
                            },
                            "route": {
                              "type": "string",
                              "enum": [
                                "structured_search",
                                "contents_summary"
                              ]
                            },
                            "units": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "reserved",
                                "measured",
                                "unmeasured",
                                "failed",
                                "refused"
                              ]
                            },
                            "reserved_dollars": {
                              "type": "number"
                            },
                            "measured_dollars": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "provider_request_id": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "call_id",
                            "route",
                            "units",
                            "status",
                            "reserved_dollars",
                            "measured_dollars",
                            "provider_request_id"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "estimated_cap_dollars",
                      "committed_dollars",
                      "measured_dollars",
                      "stopped_reason",
                      "calls"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "intake_id",
                  "status",
                  "trace_id",
                  "records",
                  "issues",
                  "receipt"
                ],
                "additionalProperties": false
              },
              "error": {
                "type": "object",
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "error",
                  "message"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "index",
              "anchor",
              "next_action",
              "status",
              "error"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "anchor": {
                "type": "string"
              },
              "next_action": {
                "type": "string",
                "enum": [
                  "none",
                  "save_company",
                  "enrich_existing_company",
                  "review_company_candidates",
                  "provide_identity_or_existing_company_id",
                  "skip_duplicate_anchor",
                  "retry_preflight",
                  "retry_save"
                ]
              },
              "next_action_args": {
                "type": "object",
                "properties": {
                  "anchor": {
                    "type": "string"
                  },
                  "existing_company_id": {
                    "type": "string"
                  },
                  "company_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "duplicate_of_index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "duplicate_key": {
                    "type": "string"
                  },
                  "match_key_kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "existing_company_id",
                          "source_company_url",
                          "primary_domain",
                          "exact_name",
                          "legal_name",
                          "name_search",
                          "llm_identity"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "match_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "type": "string",
                "enum": [
                  "skipped_duplicate_anchor"
                ]
              },
              "duplicate_of_index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "duplicate_key": {
                "type": "string"
              },
              "skip_reason": {
                "type": "string"
              }
            },
            "required": [
              "index",
              "anchor",
              "next_action",
              "status",
              "duplicate_of_index",
              "duplicate_key",
              "skip_reason"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "anchor": {
                "type": "string"
              },
              "next_action": {
                "type": "string",
                "enum": [
                  "none",
                  "save_company",
                  "enrich_existing_company",
                  "review_company_candidates",
                  "provide_identity_or_existing_company_id",
                  "skip_duplicate_anchor",
                  "retry_preflight",
                  "retry_save"
                ]
              },
              "next_action_args": {
                "type": "object",
                "properties": {
                  "anchor": {
                    "type": "string"
                  },
                  "existing_company_id": {
                    "type": "string"
                  },
                  "company_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "duplicate_of_index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "duplicate_key": {
                    "type": "string"
                  },
                  "match_key_kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "existing_company_id",
                          "source_company_url",
                          "primary_domain",
                          "exact_name",
                          "legal_name",
                          "name_search",
                          "llm_identity"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "match_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "type": "string",
                "enum": [
                  "skipped_preflight"
                ]
              },
              "preflight": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "needs_save",
                      "route_to_existing",
                      "ambiguous_existing",
                      "identity_required"
                    ]
                  },
                  "recommended_action": {
                    "type": "string",
                    "enum": [
                      "save",
                      "enrich_existing",
                      "operator_review",
                      "provide_identity_or_existing_company_id"
                    ]
                  },
                  "reason": {
                    "type": "string"
                  },
                  "match_key_kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "existing_company_id",
                          "source_company_url",
                          "primary_domain",
                          "exact_name",
                          "legal_name",
                          "name_search",
                          "llm_identity"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "match_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "selected_company_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "candidate_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "company_id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "primary_domain": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "source_company_url": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "company_id",
                        "name",
                        "primary_domain",
                        "source_company_url"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "candidates_truncated": {
                    "type": "boolean"
                  },
                  "normalized_anchor": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "normalized_name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "domain": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "normalized_name",
                      "domain",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "status",
                  "recommended_action",
                  "reason",
                  "match_key_kind",
                  "match_key",
                  "selected_company_id",
                  "candidate_count",
                  "candidates",
                  "candidates_truncated",
                  "normalized_anchor"
                ],
                "additionalProperties": false
              },
              "skip_reason": {
                "type": "string"
              }
            },
            "required": [
              "index",
              "anchor",
              "next_action",
              "status",
              "preflight",
              "skip_reason"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "summary": {
      "type": "object",
      "properties": {
        "requested_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "attempted_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "succeeded_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "failed_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "skipped_duplicate_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "skipped_preflight_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "preflight_routed_existing_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "preflight_ambiguous_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "preflight_identity_required_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "saved_one_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "saved_multiple_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "not_found_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "items_with_issues_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "minimal_fallback_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "saved_record_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "issue_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "requested_count",
        "attempted_count",
        "succeeded_count",
        "failed_count",
        "skipped_duplicate_count",
        "skipped_preflight_count",
        "preflight_routed_existing_count",
        "preflight_ambiguous_count",
        "preflight_identity_required_count",
        "saved_one_count",
        "saved_multiple_count",
        "not_found_count",
        "items_with_issues_count",
        "minimal_fallback_count",
        "saved_record_count",
        "issue_count"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "status",
    "results",
    "summary"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

plan_company_batch

Preflight up to 100 company anchors against existing companies without record writes or intake web research. Identity adjudication may use a provider. Returns duplicate, save, enrich-existing, ambiguous, and identity-required buckets for review before intake.

companies / read-only

Input schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "existing_company_id": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "anchor": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "hints": {
            "type": "object",
            "properties": {
              "domain": {
                "type": "string",
                "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
                "minLength": 1
              },
              "url": {
                "type": "string",
                "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
                "minLength": 1
              },
              "linkedin_url": {
                "type": "string",
                "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "notes": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "max_matches": {
            "type": "integer",
            "minimum": 1,
            "maximum": 25
          },
          "estimated_provider_cost_cap_dollars": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1,
            "description": "Estimated US-dollar cap for this intake's web research calls. Requires hints or existingCompanyId. Research stops and no company is saved when the next call's estimate would exceed the cap, or a call reports no cost or more than its estimate. A call can cost more than its estimate, so this is not a hard ceiling. Identity adjudication is not covered. Every call is recorded in providerSpend."
          }
        },
        "required": [
          "anchor"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 100
    }
  },
  "required": [
    "items"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "planned"
      ]
    },
    "items": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "anchor": {
                "type": "string"
              },
              "next_action": {
                "type": "string",
                "enum": [
                  "none",
                  "save_company",
                  "enrich_existing_company",
                  "review_company_candidates",
                  "provide_identity_or_existing_company_id",
                  "skip_duplicate_anchor",
                  "retry_preflight",
                  "retry_save"
                ]
              },
              "next_action_args": {
                "type": "object",
                "properties": {
                  "anchor": {
                    "type": "string"
                  },
                  "existing_company_id": {
                    "type": "string"
                  },
                  "company_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "duplicate_of_index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "duplicate_key": {
                    "type": "string"
                  },
                  "match_key_kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "existing_company_id",
                          "source_company_url",
                          "primary_domain",
                          "exact_name",
                          "legal_name",
                          "name_search",
                          "llm_identity"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "match_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "type": "string",
                "enum": [
                  "needs_save",
                  "route_to_existing",
                  "ambiguous_existing",
                  "identity_required"
                ]
              },
              "recommended_action": {
                "type": "string",
                "enum": [
                  "save",
                  "enrich_existing",
                  "operator_review",
                  "provide_identity_or_existing_company_id"
                ]
              },
              "preflight": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "needs_save",
                      "route_to_existing",
                      "ambiguous_existing",
                      "identity_required"
                    ]
                  },
                  "recommended_action": {
                    "type": "string",
                    "enum": [
                      "save",
                      "enrich_existing",
                      "operator_review",
                      "provide_identity_or_existing_company_id"
                    ]
                  },
                  "reason": {
                    "type": "string"
                  },
                  "match_key_kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "existing_company_id",
                          "source_company_url",
                          "primary_domain",
                          "exact_name",
                          "legal_name",
                          "name_search",
                          "llm_identity"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "match_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "selected_company_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "candidate_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "company_id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "primary_domain": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "source_company_url": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "company_id",
                        "name",
                        "primary_domain",
                        "source_company_url"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "candidates_truncated": {
                    "type": "boolean"
                  },
                  "normalized_anchor": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "normalized_name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "domain": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "normalized_name",
                      "domain",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "status",
                  "recommended_action",
                  "reason",
                  "match_key_kind",
                  "match_key",
                  "selected_company_id",
                  "candidate_count",
                  "candidates",
                  "candidates_truncated",
                  "normalized_anchor"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "index",
              "anchor",
              "next_action",
              "status",
              "recommended_action",
              "preflight"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "anchor": {
                "type": "string"
              },
              "next_action": {
                "type": "string",
                "enum": [
                  "none",
                  "save_company",
                  "enrich_existing_company",
                  "review_company_candidates",
                  "provide_identity_or_existing_company_id",
                  "skip_duplicate_anchor",
                  "retry_preflight",
                  "retry_save"
                ]
              },
              "next_action_args": {
                "type": "object",
                "properties": {
                  "anchor": {
                    "type": "string"
                  },
                  "existing_company_id": {
                    "type": "string"
                  },
                  "company_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "duplicate_of_index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "duplicate_key": {
                    "type": "string"
                  },
                  "match_key_kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "existing_company_id",
                          "source_company_url",
                          "primary_domain",
                          "exact_name",
                          "legal_name",
                          "name_search",
                          "llm_identity"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "match_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "type": "string",
                "enum": [
                  "duplicate_anchor"
                ]
              },
              "recommended_action": {
                "type": "string",
                "enum": [
                  "skip_duplicate"
                ]
              },
              "duplicate_of_index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "duplicate_key": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "index",
              "anchor",
              "next_action",
              "status",
              "recommended_action",
              "duplicate_of_index",
              "duplicate_key",
              "reason"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "anchor": {
                "type": "string"
              },
              "next_action": {
                "type": "string",
                "enum": [
                  "none",
                  "save_company",
                  "enrich_existing_company",
                  "review_company_candidates",
                  "provide_identity_or_existing_company_id",
                  "skip_duplicate_anchor",
                  "retry_preflight",
                  "retry_save"
                ]
              },
              "next_action_args": {
                "type": "object",
                "properties": {
                  "anchor": {
                    "type": "string"
                  },
                  "existing_company_id": {
                    "type": "string"
                  },
                  "company_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "duplicate_of_index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "duplicate_key": {
                    "type": "string"
                  },
                  "match_key_kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "existing_company_id",
                          "source_company_url",
                          "primary_domain",
                          "exact_name",
                          "legal_name",
                          "name_search",
                          "llm_identity"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "match_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "type": "string",
                "enum": [
                  "failed_preflight"
                ]
              },
              "recommended_action": {
                "type": "string",
                "enum": [
                  "retry_preflight"
                ]
              },
              "error": {
                "type": "object",
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "error",
                  "message"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "index",
              "anchor",
              "next_action",
              "status",
              "recommended_action",
              "error"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "summary": {
      "type": "object",
      "properties": {
        "requested_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "unique_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "duplicate_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "needs_save_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "route_to_existing_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "ambiguous_existing_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "identity_required_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "failed_preflight_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "provider_work_recommended_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "operator_review_recommended_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "identity_required_review_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "requested_count",
        "unique_count",
        "duplicate_count",
        "needs_save_count",
        "route_to_existing_count",
        "ambiguous_existing_count",
        "identity_required_count",
        "failed_preflight_count",
        "provider_work_recommended_count",
        "operator_review_recommended_count",
        "identity_required_review_count"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "status",
    "items",
    "summary"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_companies

Find, list, and filter existing saved SCRYU companies by text or active tag. Read-only. Rows carry company_id, name, primary_domain, hq, size_band and known_relevant_people_count; include adds named others (for example tags or completeness) only when the answer needs them. Resolve tag labels with list_company_tags, then pass tagId (tag_id in MCP). Combined tag and search filters use intersection semantics. Keep every filter unchanged when passing continueCursor (continue_cursor in MCP) as cursor. Wait for isDone (is_done in MCP) before claiming a complete cohort or exact count. An incomplete page never authorizes net-new discovery.

companies / read-only

Input schema
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "description": "Opaque continueCursor from the previous page (continue_cursor in MCP)."
    },
    "search_query": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 4096,
      "description": "Every term must appear in the company's name, ticker, industry, domain, HQ, size or a tag label (search_query in MCP)."
    },
    "tag_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 128,
      "description": "Active company tagId from list_company_tags (tag_id in MCP): only companies with that tag."
    },
    "include": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "source_company_url",
          "recent_match_count",
          "recent_matches_truncated",
          "latest_surfaced_at",
          "updated_at",
          "last_observed_at",
          "completeness",
          "tags"
        ]
      },
      "minItems": 1,
      "description": "Optional fields to add; every other field is always returned."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "companies": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "company_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "primary_domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "hq": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "size_band": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "known_relevant_people_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "source_company_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "recent_match_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "recent_matches_truncated": {
            "type": "boolean"
          },
          "latest_surfaced_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "last_observed_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "completeness": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "rich",
                  "partial",
                  "skeleton",
                  "needs_refresh"
                ]
              },
              "missing_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "present_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "priority_missing_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "status",
              "missing_fields",
              "present_fields",
              "priority_missing_fields"
            ],
            "additionalProperties": false
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tag_id": {
                  "type": "string"
                },
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "color": {
                  "type": "string"
                },
                "icon_key": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "icon_path": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "source": {
                  "type": "string",
                  "enum": [
                    "seeded",
                    "custom"
                  ]
                }
              },
              "required": [
                "tag_id",
                "key",
                "label",
                "color",
                "icon_key",
                "icon_path",
                "source"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "company_id",
          "name",
          "primary_domain",
          "hq",
          "size_band",
          "known_relevant_people_count"
        ],
        "additionalProperties": false
      }
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "type": "string"
    },
    "incomplete": {
      "type": "boolean"
    },
    "incomplete_reason": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "bounded_read_split",
            "work_bound_reached"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "companies",
    "is_done",
    "continue_cursor",
    "incomplete",
    "incomplete_reason"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_company

Load the current company detail view from SCRYU: the record, revision and canonical_fields for update_company, tags, and known_people with each person's current company. include adds others, for example foundation, matches (with paging) or research_notes. Pass matchCursor (match_cursor in MCP) with include matches to continue the matches page.

companies / read-only

Input schema
{
  "type": "object",
  "properties": {
    "company_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "match_cursor": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "include": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "recent_match_count",
          "recent_matches_truncated",
          "latest_surfaced_at",
          "updated_at",
          "last_observed_at",
          "completeness",
          "foundation",
          "matches",
          "research_notes",
          "activities",
          "evidence_reference_count"
        ]
      },
      "minItems": 1,
      "description": "Optional fields to add; every other field is always returned."
    }
  },
  "required": [
    "company_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "company": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "string"
        },
        "canonical_fields": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "primary_domain": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "source_company_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "location": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "hq": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "public_company": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "ticker": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "industry": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "size_band": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "description": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "logo_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "name",
            "primary_domain",
            "source_company_url",
            "location",
            "hq",
            "public_company",
            "ticker",
            "industry",
            "size_band",
            "description",
            "logo_url"
          ],
          "additionalProperties": false
        },
        "company_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "primary_domain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_company_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "hq": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "size_band": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "known_relevant_people_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "tag_id": {
                "type": "string"
              },
              "key": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "color": {
                "type": "string"
              },
              "icon_key": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "icon_path": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source": {
                "type": "string",
                "enum": [
                  "seeded",
                  "custom"
                ]
              }
            },
            "required": [
              "tag_id",
              "key",
              "label",
              "color",
              "icon_key",
              "icon_path",
              "source"
            ],
            "additionalProperties": false
          }
        },
        "tags_unavailable": {
          "type": "boolean"
        },
        "known_people": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "person_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current_title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current_company_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current_company_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "person_id",
              "name",
              "title",
              "current_title",
              "current_company_id",
              "current_company_name"
            ],
            "additionalProperties": false
          }
        },
        "known_people_unavailable": {
          "type": "boolean"
        },
        "recent_match_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "recent_matches_truncated": {
          "type": "boolean"
        },
        "latest_surfaced_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "last_observed_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "completeness": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "rich",
                "partial",
                "skeleton",
                "needs_refresh"
              ]
            },
            "missing_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "present_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "priority_missing_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "status",
            "missing_fields",
            "present_fields",
            "priority_missing_fields"
          ],
          "additionalProperties": false
        },
        "foundation": {
          "type": "object",
          "properties": {
            "hq": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "description": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "public_company": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "ticker": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "industry": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "size_band": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "links": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "link_id": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "website",
                      "about",
                      "investor_relations",
                      "leadership",
                      "careers",
                      "linkedin",
                      "x",
                      "youtube",
                      "facebook",
                      "instagram",
                      "github",
                      "tiktok"
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "confidence": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sources": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source_doc_id": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "homepage",
                            "about",
                            "investor_relations",
                            "leadership",
                            "annual_report",
                            "sec_filing",
                            "official_social",
                            "other_official"
                          ]
                        },
                        "url": {
                          "type": "string"
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source_doc_id",
                        "kind",
                        "url",
                        "title"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "link_id",
                  "kind",
                  "url",
                  "confidence",
                  "sources"
                ],
                "additionalProperties": false
              }
            },
            "parents": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "company_id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "primary_domain": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hq": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "relationship": {
                    "type": "string",
                    "enum": [
                      "owns"
                    ]
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "parent",
                      "child"
                    ]
                  },
                  "confidence": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sources": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source_doc_id": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "homepage",
                            "about",
                            "investor_relations",
                            "leadership",
                            "annual_report",
                            "sec_filing",
                            "official_social",
                            "other_official"
                          ]
                        },
                        "url": {
                          "type": "string"
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source_doc_id",
                        "kind",
                        "url",
                        "title"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "company_id",
                  "name",
                  "primary_domain",
                  "hq",
                  "relationship",
                  "direction",
                  "confidence",
                  "sources"
                ],
                "additionalProperties": false
              }
            },
            "subsidiaries": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "company_id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "primary_domain": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hq": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "relationship": {
                    "type": "string",
                    "enum": [
                      "owns"
                    ]
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "parent",
                      "child"
                    ]
                  },
                  "confidence": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sources": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source_doc_id": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "homepage",
                            "about",
                            "investor_relations",
                            "leadership",
                            "annual_report",
                            "sec_filing",
                            "official_social",
                            "other_official"
                          ]
                        },
                        "url": {
                          "type": "string"
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source_doc_id",
                        "kind",
                        "url",
                        "title"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "company_id",
                  "name",
                  "primary_domain",
                  "hq",
                  "relationship",
                  "direction",
                  "confidence",
                  "sources"
                ],
                "additionalProperties": false
              }
            },
            "observations": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "observation_id": {
                    "type": "string"
                  },
                  "field": {
                    "type": "string",
                    "enum": [
                      "hq",
                      "public_company",
                      "ticker",
                      "industry",
                      "size_band",
                      "top_level_segment",
                      "business_unit",
                      "brand"
                    ]
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "boolean"
                      }
                    ]
                  },
                  "confidence": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "last_observed_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "sources": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source_doc_id": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "homepage",
                            "about",
                            "investor_relations",
                            "leadership",
                            "annual_report",
                            "sec_filing",
                            "official_social",
                            "other_official"
                          ]
                        },
                        "url": {
                          "type": "string"
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source_doc_id",
                        "kind",
                        "url",
                        "title"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "observation_id",
                  "field",
                  "value",
                  "confidence",
                  "last_observed_at",
                  "sources"
                ],
                "additionalProperties": false
              }
            },
            "source_docs": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "source_doc_id": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "homepage",
                      "about",
                      "investor_relations",
                      "leadership",
                      "annual_report",
                      "sec_filing",
                      "official_social",
                      "other_official"
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "source_doc_id",
                  "kind",
                  "url",
                  "title"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "hq",
            "description",
            "public_company",
            "ticker",
            "industry",
            "size_band",
            "links",
            "parents",
            "subsidiaries",
            "observations",
            "source_docs"
          ],
          "additionalProperties": false
        },
        "foundation_unavailable": {
          "type": "boolean"
        },
        "match_page_searches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "search_id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "target_mode": {
                "type": "string",
                "enum": [
                  "people_and_companies",
                  "people",
                  "companies"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "running",
                  "idle",
                  "paused",
                  "reconciling",
                  "complete",
                  "failed"
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "completed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "search_id",
              "label",
              "target_mode",
              "status",
              "created_at",
              "completed_at"
            ],
            "additionalProperties": false
          }
        },
        "matches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "match_id": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "source_url": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "person_id": {
                "type": "string"
              },
              "company_id": {
                "type": "string"
              },
              "person_name": {
                "type": "string"
              },
              "person_position": {
                "type": "string"
              },
              "person_location": {
                "type": "string"
              },
              "company_name": {
                "type": "string"
              },
              "company_location": {
                "type": "string"
              },
              "raw_employer_name": {
                "type": "string"
              },
              "person_effect": {
                "type": "string"
              },
              "person_changed_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "company_effect": {
                "type": "string"
              },
              "company_changed_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "company_resolution_status": {
                "type": "string",
                "enum": [
                  "resolved",
                  "needs_confirmation",
                  "unresolved",
                  "conflict"
                ]
              },
              "company_resolution_reason": {
                "type": "string"
              },
              "company_candidate_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "effect_error": {
                "type": "string"
              },
              "evaluation_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "evidence_reference_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "match_id",
              "source",
              "kind",
              "evaluation_count",
              "evidence_reference_count",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "matches_continue_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "matches_has_more": {
          "type": "boolean"
        },
        "matches_truncated": {
          "type": "boolean"
        },
        "matches_unavailable": {
          "type": "boolean"
        },
        "research_notes": {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "note_id": {
                    "type": "string"
                  },
                  "entity_type": {
                    "type": "string",
                    "enum": [
                      "company",
                      "person",
                      "opportunity"
                    ]
                  },
                  "entity_id": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "body_markdown": {
                    "type": "string"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "source_urls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "related_note_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "created_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "updated_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "note_id",
                  "entity_type",
                  "entity_id",
                  "title",
                  "body_markdown",
                  "tags",
                  "source_urls",
                  "related_note_ids",
                  "created_at",
                  "updated_at"
                ],
                "additionalProperties": false
              }
            },
            "truncated": {
              "type": "boolean"
            }
          },
          "required": [
            "items",
            "truncated"
          ],
          "additionalProperties": false
        },
        "activities": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "activity_id": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "manual_edit",
                  "official_link_added",
                  "official_link_removed"
                ]
              },
              "summary": {
                "type": "string"
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "activity_id",
              "type",
              "summary",
              "created_at"
            ],
            "additionalProperties": false
          }
        },
        "activities_unavailable": {
          "type": "boolean"
        },
        "evidence_reference_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "revision",
        "canonical_fields",
        "company_id",
        "name",
        "primary_domain",
        "source_company_url",
        "hq",
        "size_band",
        "known_relevant_people_count",
        "tags",
        "tags_unavailable",
        "known_people",
        "known_people_unavailable"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "company"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

update_company

Direct write that bypasses server-side enrichment, provider research and identity adjudication. You are responsible for correctness: call get_company first, account for every existing value, pass its revision as expected_revision, send only fields you have verified, and include the evidence URLs you used. Omitted fields stay unchanged; null clears a field. Identity collisions are refused; use merge_companies for duplicates. Use find_and_save_companies for provider-backed enrichment. Read canonical_fields for exact patchable values. source_company_url is the canonical website or LinkedIn company URL, not two separate fields; name cannot be cleared. Dependent people rows refresh asynchronously in bounded steps.

companies

Input schema
{
  "type": "object",
  "properties": {
    "company_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "expected_revision": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "reason": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 500
    },
    "evidence_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1,
        "maxLength": 2048
      },
      "minItems": 1,
      "maxItems": 10
    },
    "fields": {
      "type": "object",
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_domain": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "type": "null"
            }
          ]
        },
        "source_company_url": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 2048
            },
            {
              "type": "null"
            }
          ]
        },
        "location": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 240
            },
            {
              "type": "null"
            }
          ]
        },
        "hq": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 240
            },
            {
              "type": "null"
            }
          ]
        },
        "public_company": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "ticker": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 32
            },
            {
              "type": "null"
            }
          ]
        },
        "industry": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "size_band": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 80
            },
            {
              "type": "null"
            }
          ]
        },
        "description": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 2000
            },
            {
              "type": "null"
            }
          ]
        },
        "logo_url": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 2048
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "company_id",
    "expected_revision",
    "reason",
    "evidence_urls",
    "fields"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "applied",
        "no_change"
      ]
    },
    "receipt": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "receipt_id": {
              "type": "string"
            },
            "company_id": {
              "type": "string"
            },
            "expected_revision": {
              "type": "string"
            },
            "resulting_revision": {
              "type": "string"
            },
            "changes": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "field": {
                    "type": "string"
                  },
                  "before": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "NaN",
                          "Infinity",
                          "-Infinity"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "after": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "NaN",
                          "Infinity",
                          "-Infinity"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "field",
                  "before",
                  "after"
                ],
                "additionalProperties": false
              }
            },
            "reason": {
              "type": "string"
            },
            "evidence_urls": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "applied_by": {
              "type": "string"
            },
            "applied_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            }
          },
          "required": [
            "receipt_id",
            "company_id",
            "expected_revision",
            "resulting_revision",
            "changes",
            "reason",
            "evidence_urls",
            "applied_by",
            "applied_at"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "company": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "string"
        },
        "canonical_fields": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "primary_domain": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "source_company_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "location": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "hq": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "public_company": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "ticker": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "industry": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "size_band": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "description": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "logo_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "name",
            "primary_domain",
            "source_company_url",
            "location",
            "hq",
            "public_company",
            "ticker",
            "industry",
            "size_band",
            "description",
            "logo_url"
          ],
          "additionalProperties": false
        },
        "company_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "primary_domain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_company_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "hq": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "size_band": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "known_relevant_people_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "recent_match_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "recent_matches_truncated": {
          "type": "boolean"
        },
        "latest_surfaced_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "last_observed_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "completeness": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "rich",
                "partial",
                "skeleton",
                "needs_refresh"
              ]
            },
            "missing_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "present_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "priority_missing_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "status",
            "missing_fields",
            "present_fields",
            "priority_missing_fields"
          ],
          "additionalProperties": false
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "tag_id": {
                "type": "string"
              },
              "key": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "color": {
                "type": "string"
              },
              "icon_key": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "icon_path": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source": {
                "type": "string",
                "enum": [
                  "seeded",
                  "custom"
                ]
              }
            },
            "required": [
              "tag_id",
              "key",
              "label",
              "color",
              "icon_key",
              "icon_path",
              "source"
            ],
            "additionalProperties": false
          }
        },
        "foundation": {
          "type": "object",
          "properties": {
            "hq": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "description": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "public_company": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "ticker": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "industry": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "size_band": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "links": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "link_id": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "website",
                      "about",
                      "investor_relations",
                      "leadership",
                      "careers",
                      "linkedin",
                      "x",
                      "youtube",
                      "facebook",
                      "instagram",
                      "github",
                      "tiktok"
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "confidence": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sources": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source_doc_id": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "homepage",
                            "about",
                            "investor_relations",
                            "leadership",
                            "annual_report",
                            "sec_filing",
                            "official_social",
                            "other_official"
                          ]
                        },
                        "url": {
                          "type": "string"
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source_doc_id",
                        "kind",
                        "url",
                        "title"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "link_id",
                  "kind",
                  "url",
                  "confidence",
                  "sources"
                ],
                "additionalProperties": false
              }
            },
            "parents": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "company_id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "primary_domain": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hq": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "relationship": {
                    "type": "string",
                    "enum": [
                      "owns"
                    ]
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "parent",
                      "child"
                    ]
                  },
                  "confidence": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sources": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source_doc_id": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "homepage",
                            "about",
                            "investor_relations",
                            "leadership",
                            "annual_report",
                            "sec_filing",
                            "official_social",
                            "other_official"
                          ]
                        },
                        "url": {
                          "type": "string"
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source_doc_id",
                        "kind",
                        "url",
                        "title"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "company_id",
                  "name",
                  "primary_domain",
                  "hq",
                  "relationship",
                  "direction",
                  "confidence",
                  "sources"
                ],
                "additionalProperties": false
              }
            },
            "subsidiaries": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "company_id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "primary_domain": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hq": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "relationship": {
                    "type": "string",
                    "enum": [
                      "owns"
                    ]
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "parent",
                      "child"
                    ]
                  },
                  "confidence": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sources": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source_doc_id": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "homepage",
                            "about",
                            "investor_relations",
                            "leadership",
                            "annual_report",
                            "sec_filing",
                            "official_social",
                            "other_official"
                          ]
                        },
                        "url": {
                          "type": "string"
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source_doc_id",
                        "kind",
                        "url",
                        "title"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "company_id",
                  "name",
                  "primary_domain",
                  "hq",
                  "relationship",
                  "direction",
                  "confidence",
                  "sources"
                ],
                "additionalProperties": false
              }
            },
            "observations": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "observation_id": {
                    "type": "string"
                  },
                  "field": {
                    "type": "string",
                    "enum": [
                      "hq",
                      "public_company",
                      "ticker",
                      "industry",
                      "size_band",
                      "top_level_segment",
                      "business_unit",
                      "brand"
                    ]
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "boolean"
                      }
                    ]
                  },
                  "confidence": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "last_observed_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "sources": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source_doc_id": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "homepage",
                            "about",
                            "investor_relations",
                            "leadership",
                            "annual_report",
                            "sec_filing",
                            "official_social",
                            "other_official"
                          ]
                        },
                        "url": {
                          "type": "string"
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source_doc_id",
                        "kind",
                        "url",
                        "title"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "observation_id",
                  "field",
                  "value",
                  "confidence",
                  "last_observed_at",
                  "sources"
                ],
                "additionalProperties": false
              }
            },
            "source_docs": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "source_doc_id": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "homepage",
                      "about",
                      "investor_relations",
                      "leadership",
                      "annual_report",
                      "sec_filing",
                      "official_social",
                      "other_official"
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "source_doc_id",
                  "kind",
                  "url",
                  "title"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "hq",
            "description",
            "public_company",
            "ticker",
            "industry",
            "size_band",
            "links",
            "parents",
            "subsidiaries",
            "observations",
            "source_docs"
          ],
          "additionalProperties": false
        },
        "foundation_unavailable": {
          "type": "boolean"
        },
        "known_people": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "person_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current_title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current_company_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current_company_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "person_id",
              "name",
              "title",
              "current_title",
              "current_company_id",
              "current_company_name"
            ],
            "additionalProperties": false
          }
        },
        "known_people_unavailable": {
          "type": "boolean"
        },
        "tags_unavailable": {
          "type": "boolean"
        },
        "match_page_searches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "search_id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "target_mode": {
                "type": "string",
                "enum": [
                  "people_and_companies",
                  "people",
                  "companies"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "running",
                  "idle",
                  "paused",
                  "reconciling",
                  "complete",
                  "failed"
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "completed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "search_id",
              "label",
              "target_mode",
              "status",
              "created_at",
              "completed_at"
            ],
            "additionalProperties": false
          }
        },
        "matches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "match_id": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "source_url": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "person_id": {
                "type": "string"
              },
              "company_id": {
                "type": "string"
              },
              "person_name": {
                "type": "string"
              },
              "person_position": {
                "type": "string"
              },
              "person_location": {
                "type": "string"
              },
              "company_name": {
                "type": "string"
              },
              "company_location": {
                "type": "string"
              },
              "raw_employer_name": {
                "type": "string"
              },
              "person_effect": {
                "type": "string"
              },
              "person_changed_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "company_effect": {
                "type": "string"
              },
              "company_changed_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "company_resolution_status": {
                "type": "string",
                "enum": [
                  "resolved",
                  "needs_confirmation",
                  "unresolved",
                  "conflict"
                ]
              },
              "company_resolution_reason": {
                "type": "string"
              },
              "company_candidate_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "effect_error": {
                "type": "string"
              },
              "evaluation_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "evidence_reference_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "match_id",
              "source",
              "kind",
              "evaluation_count",
              "evidence_reference_count",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "matches_continue_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "matches_has_more": {
          "type": "boolean"
        },
        "matches_truncated": {
          "type": "boolean"
        },
        "matches_unavailable": {
          "type": "boolean"
        },
        "research_notes": {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "note_id": {
                    "type": "string"
                  },
                  "entity_type": {
                    "type": "string",
                    "enum": [
                      "company",
                      "person",
                      "opportunity"
                    ]
                  },
                  "entity_id": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "body_markdown": {
                    "type": "string"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "source_urls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "related_note_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "created_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "updated_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "note_id",
                  "entity_type",
                  "entity_id",
                  "title",
                  "body_markdown",
                  "tags",
                  "source_urls",
                  "related_note_ids",
                  "created_at",
                  "updated_at"
                ],
                "additionalProperties": false
              }
            },
            "truncated": {
              "type": "boolean"
            }
          },
          "required": [
            "items",
            "truncated"
          ],
          "additionalProperties": false
        },
        "activities": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "activity_id": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "manual_edit",
                  "official_link_added",
                  "official_link_removed"
                ]
              },
              "summary": {
                "type": "string"
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "activity_id",
              "type",
              "summary",
              "created_at"
            ],
            "additionalProperties": false
          }
        },
        "activities_unavailable": {
          "type": "boolean"
        },
        "evidence_reference_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "revision",
        "canonical_fields",
        "company_id",
        "name",
        "primary_domain",
        "source_company_url",
        "hq",
        "size_band",
        "known_relevant_people_count",
        "recent_match_count",
        "recent_matches_truncated",
        "latest_surfaced_at",
        "updated_at",
        "last_observed_at",
        "completeness",
        "tags",
        "foundation",
        "foundation_unavailable",
        "known_people",
        "known_people_unavailable",
        "tags_unavailable",
        "match_page_searches",
        "matches",
        "matches_continue_cursor",
        "matches_has_more",
        "matches_truncated",
        "matches_unavailable",
        "research_notes",
        "activities",
        "activities_unavailable",
        "evidence_reference_count"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "status",
    "receipt",
    "company"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_company_tags

List active company tags. Use a returned tag_id to filter existing saved companies with list_companies or to assign that existing tag with add_company_tag. Read-only. New custom tags must be created in the UI, not through MCP/API.

companies / read-only

Input schema
{
  "type": "object",
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "tags": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tag_id": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "color": {
            "type": "string"
          },
          "icon_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "icon_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "icon_svg": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "seeded",
              "custom"
            ]
          }
        },
        "required": [
          "tag_id",
          "key",
          "label",
          "description",
          "color",
          "icon_key",
          "icon_path",
          "icon_svg",
          "source"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "tags"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

add_company_tag

Assign an existing company tag to an existing SCRYU company. Use list_company_tags first if you do not already know the tag_id. This tool cannot create custom tags. Call get_company to read back the company state after writing.

companies

Input schema
{
  "type": "object",
  "properties": {
    "company_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "tag_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "description": "Existing company tag_id from list_company_tags or get_company. This operation cannot create tags."
    }
  },
  "required": [
    "company_id",
    "tag_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "tag": {
      "type": "object",
      "properties": {
        "tag_id": {
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "color": {
          "type": "string"
        },
        "icon_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "icon_path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "icon_svg": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source": {
          "type": "string",
          "enum": [
            "seeded",
            "custom"
          ]
        }
      },
      "required": [
        "tag_id",
        "key",
        "label",
        "description",
        "color",
        "icon_key",
        "icon_path",
        "icon_svg",
        "source"
      ],
      "additionalProperties": false
    },
    "assigned": {
      "type": "boolean"
    }
  },
  "required": [
    "tag",
    "assigned"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

remove_company_tag

Remove an existing company tag assignment from a company. Call get_company to read back the company state after writing.

companies

Input schema
{
  "type": "object",
  "properties": {
    "company_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "tag_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "description": "Existing company tag_id from list_company_tags or get_company. This operation cannot create tags."
    }
  },
  "required": [
    "company_id",
    "tag_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "removed": {
      "type": "boolean"
    }
  },
  "required": [
    "removed"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

find_and_save_people

Uses paid provider credits. Call it only when the user explicitly asks for provider discovery, a refresh, or a search run, or after your own research could not establish the identity, and never in loops or batches the user did not ask for. On capacity_exhausted, stop calling paid tools, continue with your own research and writes that make no provider calls, and report that the research quota needs restoring. Resolve plausible people from a canonical anchor and save verified records. A company ID gates employer identity after discovery, not provider search. Use deep_find_person for inspect-only fallback when profile identity is missing. When identity cannot be settled safely, status is needs_decision and decision carries the full reason, the frozen candidates and next steps. That intake stays open until you resolve it: inspect it with get_identity_intake_decision, check list_people and get_company known_people for an existing record, then call decide_identity_intake, retry_identity_intake or abandon_identity_intake with durable evidence.

people

Input schema
{
  "type": "object",
  "properties": {
    "existing_company_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "anchor": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "hints": {
      "type": "object",
      "properties": {
        "profile_url": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        "company": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        "title": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        "location": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        }
      },
      "additionalProperties": false
    },
    "notes": {
      "type": "string"
    },
    "max_matches": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    }
  },
  "required": [
    "anchor"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "intake_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "saved_one",
        "saved_multiple",
        "not_found",
        "needs_decision"
      ]
    },
    "trace_id": {
      "type": "string"
    },
    "records": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "person_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "current_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "profile_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "employment_state": {
            "type": "string",
            "enum": [
              "saved",
              "not_resolved"
            ]
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "stage": {
                  "type": "string"
                },
                "severity": {
                  "type": "string",
                  "enum": [
                    "warning",
                    "error"
                  ]
                },
                "message": {
                  "type": "string"
                },
                "candidate_label": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "record_id": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "candidate_profile_url": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "stage",
                "severity",
                "message",
                "candidate_label",
                "record_id"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "person_id",
          "name",
          "current_title",
          "current_company_name",
          "profile_url",
          "location",
          "employment_state",
          "issues"
        ],
        "additionalProperties": false
      }
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "stage": {
            "type": "string"
          },
          "severity": {
            "type": "string",
            "enum": [
              "warning",
              "error"
            ]
          },
          "message": {
            "type": "string"
          },
          "candidate_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "candidate_profile_url": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "stage",
          "severity",
          "message",
          "candidate_label",
          "record_id"
        ],
        "additionalProperties": false
      }
    },
    "receipt": {
      "type": "object",
      "properties": {
        "attempted_candidate_count": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "saved_record_count": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "issue_count": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        }
      },
      "required": [
        "attempted_candidate_count",
        "saved_record_count",
        "issue_count"
      ],
      "additionalProperties": false
    },
    "decision": {
      "type": "object",
      "properties": {
        "reason": {
          "type": "string"
        },
        "candidates": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string"
              },
              "identity_key": {
                "type": "string"
              },
              "entity_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "evidence_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "label",
              "identity_key",
              "entity_id",
              "evidence_urls"
            ],
            "additionalProperties": false
          }
        },
        "candidates_truncated": {
          "type": "boolean"
        },
        "next_steps": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "reason",
        "candidates",
        "candidates_truncated",
        "next_steps"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "intake_id",
    "status",
    "trace_id",
    "records",
    "issues",
    "receipt"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

deep_find_person

Uses paid provider credits. Call it only when the user explicitly asks for provider discovery, a refresh, or a search run, or after your own research could not establish the identity, and never in loops or batches the user did not ask for. On capacity_exhausted, stop calling paid tools, continue with your own research and writes that make no provider calls, and report that the research quota needs restoring. Inspect public evidence for one exact person without writing canonical people or contact records.

people / read-only

Input schema
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1
    },
    "company": {
      "type": "string",
      "minLength": 1
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "email": {
      "type": "string",
      "minLength": 1
    },
    "profile_url": {
      "type": "string",
      "minLength": 1
    },
    "source_context": {
      "type": "string",
      "minLength": 1
    },
    "location": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "outcome": {
      "type": "string",
      "enum": [
        "verified_exact_person",
        "ambiguous",
        "not_found",
        "wrong_input_profile"
      ]
    },
    "trace_id": {
      "type": "string"
    },
    "exact_match": {
      "type": "boolean"
    },
    "confidence": {
      "type": "string",
      "enum": [
        "high",
        "medium",
        "low",
        "none"
      ]
    },
    "matched_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "matched_company": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "matched_title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "profile_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "identity_evidence_urls": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "employer_evidence_urls": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "contact_evidence": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "confidence": {
            "type": "string",
            "enum": [
              "high",
              "medium",
              "low",
              "none"
            ]
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "email",
              "phone",
              "linkedin",
              "other"
            ]
          },
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "source_url",
          "confidence",
          "summary",
          "kind",
          "value"
        ],
        "additionalProperties": false
      }
    },
    "abstention_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "notes": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "search_summary": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "canonical_write_occurred": {
      "type": "boolean",
      "enum": [
        false
      ]
    }
  },
  "required": [
    "outcome",
    "trace_id",
    "exact_match",
    "confidence",
    "matched_name",
    "matched_company",
    "matched_title",
    "profile_url",
    "identity_evidence_urls",
    "employer_evidence_urls",
    "contact_evidence",
    "abstention_reason",
    "notes",
    "search_summary",
    "canonical_write_occurred"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

refresh_person

Uses paid provider credits. Call it only when the user explicitly asks for provider discovery, a refresh, or a search run, or after your own research could not establish the identity, and never in loops or batches the user did not ask for. On capacity_exhausted, stop calling paid tools, continue with your own research and writes that make no provider calls, and report that the research quota needs restoring. Queue durable rehydration of an existing person with a verified source profile URL. Email discovery is the expensive part; set skip_email_discovery=true to refresh the profile only (default false). Read back measured provider costs and unmeasured call counts before scheduling more refreshes.

people

Input schema
{
  "type": "object",
  "properties": {
    "skip_email_discovery": {
      "type": "boolean"
    },
    "person_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "profile_url": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "person_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "outcome_reason": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    },
    "skip_email_discovery": {
      "type": "boolean"
    },
    "provider_cost_usd": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "provider_calls": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "route": {
            "type": "string"
          },
          "call_count": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "measured_cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "unmeasured_calls": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          }
        },
        "required": [
          "route",
          "call_count",
          "measured_cost_usd",
          "unmeasured_calls"
        ],
        "additionalProperties": false
      }
    },
    "unmeasured_provider_calls": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "refresh_id": {
      "type": "string"
    },
    "person_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "completed",
        "failed"
      ]
    },
    "outcome": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "improved",
            "no_change",
            "needs_review",
            "failed"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "contact_ready": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "email_gap": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "email_receipt": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "outcome": {
              "type": "string",
              "enum": [
                "found",
                "already_present",
                "not_found",
                "needs_review"
              ]
            },
            "candidate_count": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "address": {
              "type": "string"
            },
            "source_urls": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "outcome",
            "candidate_count",
            "source_urls"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "changed_fields": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "failure_code": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "staging_effect_blocked",
            "credits_exhausted",
            "capacity_exhausted",
            "rate_limited",
            "timeout",
            "provider_unavailable",
            "authentication",
            "request_rejected",
            "provider_failure",
            "profile_not_fetchable",
            "employer_mismatch",
            "person_identity_conflict",
            "person_not_found",
            "person_profile_mismatch",
            "person_target_identity_refusal",
            "deadline_reached",
            "execution_limit_reached",
            "intake_capacity_exceeded",
            "execution_failed",
            "unexpected"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "requested_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "started_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "refresh_id",
    "person_id",
    "status",
    "outcome",
    "contact_ready",
    "email_gap",
    "email_receipt",
    "changed_fields",
    "error",
    "requested_at",
    "started_at",
    "completed_at"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_person_refresh

Read the durable queued, running, completed, or failed state for a refreshId returned by refresh_person.

people / read-only

Input schema
{
  "type": "object",
  "properties": {
    "refresh_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "refresh_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "outcome_reason": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    },
    "skip_email_discovery": {
      "type": "boolean"
    },
    "provider_cost_usd": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "provider_calls": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "route": {
            "type": "string"
          },
          "call_count": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "measured_cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "unmeasured_calls": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          }
        },
        "required": [
          "route",
          "call_count",
          "measured_cost_usd",
          "unmeasured_calls"
        ],
        "additionalProperties": false
      }
    },
    "unmeasured_provider_calls": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "refresh_id": {
      "type": "string"
    },
    "person_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "completed",
        "failed"
      ]
    },
    "outcome": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "improved",
            "no_change",
            "needs_review",
            "failed"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "contact_ready": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "email_gap": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "email_receipt": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "outcome": {
              "type": "string",
              "enum": [
                "found",
                "already_present",
                "not_found",
                "needs_review"
              ]
            },
            "candidate_count": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "address": {
              "type": "string"
            },
            "source_urls": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "outcome",
            "candidate_count",
            "source_urls"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "changed_fields": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "failure_code": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "staging_effect_blocked",
            "credits_exhausted",
            "capacity_exhausted",
            "rate_limited",
            "timeout",
            "provider_unavailable",
            "authentication",
            "request_rejected",
            "provider_failure",
            "profile_not_fetchable",
            "employer_mismatch",
            "person_identity_conflict",
            "person_not_found",
            "person_profile_mismatch",
            "person_target_identity_refusal",
            "deadline_reached",
            "execution_limit_reached",
            "intake_capacity_exceeded",
            "execution_failed",
            "unexpected"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "requested_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "started_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "refresh_id",
    "person_id",
    "status",
    "outcome",
    "contact_ready",
    "email_gap",
    "email_receipt",
    "changed_fields",
    "error",
    "requested_at",
    "started_at",
    "completed_at"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

set_person_contact_info

Set an existing person's primary email and optional primary phone, then return the updated person detail. The phone must contain 7 to 15 digits; source defaults to manual. Pass sourceReferenceId (source_reference_id in MCP) when the contact attribution is known.

people

Input schema
{
  "type": "object",
  "properties": {
    "person_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "email_address": {
      "type": "string",
      "pattern": "^\\s*(?!\\.)(?![^\\s]*\\.\\.)([A-Za-z0-9_'+\\-.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9-]*\\.)+[A-Za-z]{2,}\\s*$",
      "description": "Known email address to store as this person's primary email."
    },
    "phone_number": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "source": {
      "type": "string",
      "enum": [
        "manual",
        "import"
      ]
    },
    "source_reference_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 512,
      "description": "Optional attribution for where the contact value came from. Pass a readable event list, catalog, CRM export, research note, or import batch reference when known; omit when unknown. This is not the MCP/API consumer identity."
    }
  },
  "required": [
    "person_id",
    "email_address"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "person": {
      "type": "object",
      "properties": {
        "person_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "current_title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_company_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_company_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_company_size_band": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_employment_source_claim": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "enum": [
                    "import"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "unverified"
                  ]
                },
                "reference_id": {
                  "type": "string"
                }
              },
              "required": [
                "source",
                "status",
                "reference_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "current_title_source_claim": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "enum": [
                    "import"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "unverified"
                  ]
                },
                "reference_id": {
                  "type": "string"
                }
              },
              "required": [
                "source",
                "status",
                "reference_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "location": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "country_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "about_summary": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_profile_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "profile_image_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_email_status": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "unverified",
                "verified",
                "bounced",
                "invalid",
                "opted_out",
                "stale",
                "do_not_contact"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_email_source": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "manual",
                "inbound_email",
                "gmail_sync",
                "provider",
                "research_note",
                "linkedin_profile",
                "import"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_phone": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_phone_status": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "unverified",
                "verified",
                "bounced",
                "invalid",
                "opted_out",
                "stale",
                "do_not_contact"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_phone_source": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "manual",
                "inbound_email",
                "gmail_sync",
                "provider",
                "research_note",
                "linkedin_profile",
                "import"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "recent_match_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "recent_matches_truncated": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "latest_surfaced_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "last_observed_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "completeness": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "rich",
                "partial",
                "skeleton",
                "needs_refresh"
              ]
            },
            "missing_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "present_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "priority_missing_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "status",
            "missing_fields",
            "present_fields",
            "priority_missing_fields"
          ],
          "additionalProperties": false
        },
        "revision": {
          "type": "string"
        },
        "canonical_profile": {
          "type": "object",
          "properties": {
            "source_profile_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "location": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "country_code": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "about_summary": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "profile_image_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "source_profile_url",
            "current_title",
            "location",
            "country_code",
            "about_summary",
            "profile_image_url"
          ],
          "additionalProperties": false
        },
        "rollups_unavailable": {
          "type": "boolean"
        },
        "current_employment": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "employment_id": {
                  "type": "string"
                },
                "company_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "location": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_current": {
                  "type": "boolean"
                },
                "last_observed_at": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "source_claim": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": "string",
                          "enum": [
                            "import"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "unverified"
                          ]
                        },
                        "reference_id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "source",
                        "status",
                        "reference_id"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completeness": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "rich",
                        "partial",
                        "skeleton",
                        "needs_refresh"
                      ]
                    },
                    "missing_fields": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "present_fields": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "priority_missing_fields": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "status",
                    "missing_fields",
                    "present_fields",
                    "priority_missing_fields"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "employment_id",
                "company_id",
                "name",
                "title",
                "location",
                "is_current",
                "last_observed_at",
                "source_claim",
                "completeness"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "known_companies": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "employment_id": {
                "type": "string"
              },
              "company_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "location": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_current": {
                "type": "boolean"
              },
              "last_observed_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "source_claim": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "source": {
                        "type": "string",
                        "enum": [
                          "import"
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "unverified"
                        ]
                      },
                      "reference_id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "source",
                      "status",
                      "reference_id"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "completeness": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "rich",
                      "partial",
                      "skeleton",
                      "needs_refresh"
                    ]
                  },
                  "missing_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "present_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "priority_missing_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "status",
                  "missing_fields",
                  "present_fields",
                  "priority_missing_fields"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "employment_id",
              "company_id",
              "name",
              "title",
              "location",
              "is_current",
              "last_observed_at",
              "source_claim",
              "completeness"
            ],
            "additionalProperties": false
          }
        },
        "known_companies_unavailable": {
          "type": "boolean"
        },
        "recent_searches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "search_id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "target_mode": {
                "type": "string",
                "enum": [
                  "people_and_companies",
                  "people",
                  "companies"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "running",
                  "idle",
                  "paused",
                  "reconciling",
                  "complete",
                  "failed"
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "completed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "search_id",
              "label",
              "target_mode",
              "status",
              "created_at",
              "completed_at"
            ],
            "additionalProperties": false
          }
        },
        "matches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "match_id": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "source_url": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "person_id": {
                "type": "string"
              },
              "company_id": {
                "type": "string"
              },
              "person_name": {
                "type": "string"
              },
              "person_position": {
                "type": "string"
              },
              "person_location": {
                "type": "string"
              },
              "company_name": {
                "type": "string"
              },
              "company_location": {
                "type": "string"
              },
              "raw_employer_name": {
                "type": "string"
              },
              "person_effect": {
                "type": "string"
              },
              "person_changed_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "company_effect": {
                "type": "string"
              },
              "company_changed_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "company_resolution_status": {
                "type": "string",
                "enum": [
                  "resolved",
                  "needs_confirmation",
                  "unresolved",
                  "conflict"
                ]
              },
              "company_resolution_reason": {
                "type": "string"
              },
              "company_candidate_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "effect_error": {
                "type": "string"
              },
              "evaluation_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "evidence_reference_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "match_id",
              "source",
              "kind",
              "evaluation_count",
              "evidence_reference_count",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "matches_continue_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "matches_has_more": {
          "type": "boolean"
        },
        "matches_truncated": {
          "type": "boolean"
        },
        "evidence_summaries": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "match_id": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "source_url": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "satisfied_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "unsatisfied_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "unknown_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "reference_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "title": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "snippet": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "url",
                    "title",
                    "snippet"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "match_id",
              "source",
              "source_url",
              "title",
              "description",
              "satisfied_count",
              "unsatisfied_count",
              "unknown_count",
              "reference_count",
              "references"
            ],
            "additionalProperties": false
          }
        },
        "evidence_summaries_unavailable": {
          "type": "boolean"
        },
        "experience_summaries": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "company_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "location": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "start_text": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "end_text": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_current": {
                "type": "boolean"
              }
            },
            "required": [
              "title",
              "company_name",
              "location",
              "start_text",
              "end_text",
              "is_current"
            ],
            "additionalProperties": false
          }
        },
        "contact_points": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "contact_point_id": {
                "type": "string"
              },
              "person_id": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "email",
                  "phone",
                  "linkedin",
                  "x",
                  "other"
                ]
              },
              "value": {
                "type": "string"
              },
              "normalized_value": {
                "type": "string"
              },
              "label": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "unverified",
                  "verified",
                  "bounced",
                  "invalid",
                  "opted_out",
                  "stale",
                  "do_not_contact"
                ]
              },
              "confidence": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              },
              "is_primary": {
                "type": "boolean"
              },
              "source": {
                "type": "string",
                "enum": [
                  "manual",
                  "inbound_email",
                  "gmail_sync",
                  "provider",
                  "research_note",
                  "linkedin_profile",
                  "import"
                ]
              },
              "source_reference_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_verified_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_observed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "contact_point_id",
              "person_id",
              "kind",
              "value",
              "normalized_value",
              "label",
              "status",
              "confidence",
              "is_primary",
              "source",
              "source_reference_id",
              "last_verified_at",
              "last_observed_at",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "contact_points_unavailable": {
          "type": "boolean"
        },
        "missing_data": {
          "type": "object",
          "properties": {
            "about_summary": {
              "type": "boolean"
            },
            "country_code": {
              "type": "boolean"
            },
            "source_profile_url": {
              "type": "boolean"
            },
            "profile_image_url": {
              "type": "boolean"
            },
            "current_employment": {
              "type": "boolean"
            },
            "search_origins": {
              "type": "boolean"
            },
            "evidence_references": {
              "type": "boolean"
            }
          },
          "required": [
            "about_summary",
            "country_code",
            "source_profile_url",
            "profile_image_url",
            "current_employment",
            "search_origins",
            "evidence_references"
          ],
          "additionalProperties": false
        },
        "research_notes": {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "note_id": {
                    "type": "string"
                  },
                  "entity_type": {
                    "type": "string",
                    "enum": [
                      "company",
                      "person",
                      "opportunity"
                    ]
                  },
                  "entity_id": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "body_markdown": {
                    "type": "string"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "source_urls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "related_note_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "created_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "updated_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "note_id",
                  "entity_type",
                  "entity_id",
                  "title",
                  "body_markdown",
                  "tags",
                  "source_urls",
                  "related_note_ids",
                  "created_at",
                  "updated_at"
                ],
                "additionalProperties": false
              }
            },
            "truncated": {
              "type": "boolean"
            }
          },
          "required": [
            "items",
            "truncated"
          ],
          "additionalProperties": false
        },
        "evidence_reference_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "person_id",
        "name",
        "current_title",
        "current_company_id",
        "current_company_name",
        "current_company_size_band",
        "current_employment_source_claim",
        "current_title_source_claim",
        "location",
        "country_code",
        "about_summary",
        "source_profile_url",
        "profile_image_url",
        "primary_email",
        "primary_email_status",
        "primary_email_source",
        "primary_phone",
        "primary_phone_status",
        "primary_phone_source",
        "recent_match_count",
        "recent_matches_truncated",
        "latest_surfaced_at",
        "updated_at",
        "last_observed_at",
        "completeness",
        "revision",
        "canonical_profile",
        "rollups_unavailable",
        "current_employment",
        "known_companies",
        "known_companies_unavailable",
        "recent_searches",
        "matches",
        "matches_continue_cursor",
        "matches_has_more",
        "matches_truncated",
        "evidence_summaries",
        "evidence_summaries_unavailable",
        "experience_summaries",
        "contact_points",
        "contact_points_unavailable",
        "missing_data",
        "research_notes",
        "evidence_reference_count"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "person"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

set_person_email_status

Read get_person with include contact_points first, select the exact email's contact_point_id inside the script, then mark it invalid or bounced, or restore it as unverified. Returns canonical saved-contact readback, including contact_point_id, person_id and status; no extra read is needed to confirm those values. Consent-restricted emails cannot be changed. Invalid and bounced emails lose primary selection and cannot be relaunched for outreach; usable alternatives and outreach history remain unchanged.

people

Input schema
{
  "type": "object",
  "properties": {
    "person_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "contact_point_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "description": "Exact saved email contact_point_id from get_person; never a primary-email selector."
    },
    "status": {
      "type": "string",
      "enum": [
        "invalid",
        "bounced",
        "unverified"
      ]
    }
  },
  "required": [
    "person_id",
    "contact_point_id",
    "status"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "contact_point": {
      "type": "object",
      "properties": {
        "contact_point_id": {
          "type": "string"
        },
        "person_id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "email",
            "phone",
            "linkedin",
            "x",
            "other"
          ]
        },
        "value": {
          "type": "string"
        },
        "normalized_value": {
          "type": "string"
        },
        "label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "unverified",
            "verified",
            "bounced",
            "invalid",
            "opted_out",
            "stale",
            "do_not_contact"
          ]
        },
        "confidence": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "is_primary": {
          "type": "boolean"
        },
        "source": {
          "type": "string",
          "enum": [
            "manual",
            "inbound_email",
            "gmail_sync",
            "provider",
            "research_note",
            "linkedin_profile",
            "import"
          ]
        },
        "source_reference_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "last_verified_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "last_observed_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "updated_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "contact_point_id",
        "person_id",
        "kind",
        "value",
        "normalized_value",
        "label",
        "status",
        "confidence",
        "is_primary",
        "source",
        "source_reference_id",
        "last_verified_at",
        "last_observed_at",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "contact_point"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

update_person

Direct write that bypasses server-side enrichment, provider research and identity adjudication. You are responsible for correctness: call get_person first, account for every existing value, pass its revision as expected_revision, send only fields you have verified, and include the evidence URLs you used. Omitted fields stay unchanged; null clears a field. Use refresh_person for provider-backed enrichment.

people

Input schema
{
  "type": "object",
  "properties": {
    "person_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "expected_revision": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 80
    },
    "reason": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 500
    },
    "evidence_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1,
        "maxLength": 2048
      },
      "minItems": 1,
      "maxItems": 10
    },
    "fields": {
      "type": "object",
      "properties": {
        "source_profile_url": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 512
            },
            {
              "type": "null"
            }
          ]
        },
        "current_title": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "location": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 500
            },
            {
              "type": "null"
            }
          ]
        },
        "country_code": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 2
            },
            {
              "type": "null"
            }
          ]
        },
        "about_summary": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 10000
            },
            {
              "type": "null"
            }
          ]
        },
        "profile_image_url": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 2048
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "person_id",
    "expected_revision",
    "reason",
    "evidence_urls",
    "fields"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "applied",
        "no_change"
      ]
    },
    "receipt": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "receipt_id": {
              "type": "string"
            },
            "person_id": {
              "type": "string"
            },
            "expected_revision": {
              "type": "string"
            },
            "resulting_revision": {
              "type": "string"
            },
            "changes": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "field": {
                    "type": "string"
                  },
                  "before": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "after": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "field",
                  "before",
                  "after"
                ],
                "additionalProperties": false
              }
            },
            "reason": {
              "type": "string"
            },
            "evidence_urls": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "applied_by": {
              "type": "string"
            },
            "applied_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            }
          },
          "required": [
            "receipt_id",
            "person_id",
            "expected_revision",
            "resulting_revision",
            "changes",
            "reason",
            "evidence_urls",
            "applied_by",
            "applied_at"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "person": {
      "type": "object",
      "properties": {
        "person_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "current_title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_company_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_company_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_company_size_band": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_employment_source_claim": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "enum": [
                    "import"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "unverified"
                  ]
                },
                "reference_id": {
                  "type": "string"
                }
              },
              "required": [
                "source",
                "status",
                "reference_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "current_title_source_claim": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "enum": [
                    "import"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "unverified"
                  ]
                },
                "reference_id": {
                  "type": "string"
                }
              },
              "required": [
                "source",
                "status",
                "reference_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "location": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "country_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "about_summary": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_profile_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "profile_image_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_email_status": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "unverified",
                "verified",
                "bounced",
                "invalid",
                "opted_out",
                "stale",
                "do_not_contact"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_email_source": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "manual",
                "inbound_email",
                "gmail_sync",
                "provider",
                "research_note",
                "linkedin_profile",
                "import"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_phone": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_phone_status": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "unverified",
                "verified",
                "bounced",
                "invalid",
                "opted_out",
                "stale",
                "do_not_contact"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_phone_source": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "manual",
                "inbound_email",
                "gmail_sync",
                "provider",
                "research_note",
                "linkedin_profile",
                "import"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "recent_match_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "recent_matches_truncated": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "latest_surfaced_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "last_observed_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "completeness": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "rich",
                "partial",
                "skeleton",
                "needs_refresh"
              ]
            },
            "missing_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "present_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "priority_missing_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "status",
            "missing_fields",
            "present_fields",
            "priority_missing_fields"
          ],
          "additionalProperties": false
        },
        "revision": {
          "type": "string"
        },
        "canonical_profile": {
          "type": "object",
          "properties": {
            "source_profile_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "location": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "country_code": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "about_summary": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "profile_image_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "source_profile_url",
            "current_title",
            "location",
            "country_code",
            "about_summary",
            "profile_image_url"
          ],
          "additionalProperties": false
        },
        "rollups_unavailable": {
          "type": "boolean"
        },
        "current_employment": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "employment_id": {
                  "type": "string"
                },
                "company_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "location": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_current": {
                  "type": "boolean"
                },
                "last_observed_at": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "source_claim": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": "string",
                          "enum": [
                            "import"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "unverified"
                          ]
                        },
                        "reference_id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "source",
                        "status",
                        "reference_id"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completeness": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "rich",
                        "partial",
                        "skeleton",
                        "needs_refresh"
                      ]
                    },
                    "missing_fields": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "present_fields": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "priority_missing_fields": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "status",
                    "missing_fields",
                    "present_fields",
                    "priority_missing_fields"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "employment_id",
                "company_id",
                "name",
                "title",
                "location",
                "is_current",
                "last_observed_at",
                "source_claim",
                "completeness"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "known_companies": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "employment_id": {
                "type": "string"
              },
              "company_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "location": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_current": {
                "type": "boolean"
              },
              "last_observed_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "source_claim": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "source": {
                        "type": "string",
                        "enum": [
                          "import"
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "unverified"
                        ]
                      },
                      "reference_id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "source",
                      "status",
                      "reference_id"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "completeness": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "rich",
                      "partial",
                      "skeleton",
                      "needs_refresh"
                    ]
                  },
                  "missing_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "present_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "priority_missing_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "status",
                  "missing_fields",
                  "present_fields",
                  "priority_missing_fields"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "employment_id",
              "company_id",
              "name",
              "title",
              "location",
              "is_current",
              "last_observed_at",
              "source_claim",
              "completeness"
            ],
            "additionalProperties": false
          }
        },
        "known_companies_unavailable": {
          "type": "boolean"
        },
        "recent_searches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "search_id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "target_mode": {
                "type": "string",
                "enum": [
                  "people_and_companies",
                  "people",
                  "companies"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "running",
                  "idle",
                  "paused",
                  "reconciling",
                  "complete",
                  "failed"
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "completed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "search_id",
              "label",
              "target_mode",
              "status",
              "created_at",
              "completed_at"
            ],
            "additionalProperties": false
          }
        },
        "matches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "match_id": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "source_url": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "person_id": {
                "type": "string"
              },
              "company_id": {
                "type": "string"
              },
              "person_name": {
                "type": "string"
              },
              "person_position": {
                "type": "string"
              },
              "person_location": {
                "type": "string"
              },
              "company_name": {
                "type": "string"
              },
              "company_location": {
                "type": "string"
              },
              "raw_employer_name": {
                "type": "string"
              },
              "person_effect": {
                "type": "string"
              },
              "person_changed_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "company_effect": {
                "type": "string"
              },
              "company_changed_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "company_resolution_status": {
                "type": "string",
                "enum": [
                  "resolved",
                  "needs_confirmation",
                  "unresolved",
                  "conflict"
                ]
              },
              "company_resolution_reason": {
                "type": "string"
              },
              "company_candidate_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "effect_error": {
                "type": "string"
              },
              "evaluation_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "evidence_reference_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "match_id",
              "source",
              "kind",
              "evaluation_count",
              "evidence_reference_count",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "matches_continue_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "matches_has_more": {
          "type": "boolean"
        },
        "matches_truncated": {
          "type": "boolean"
        },
        "evidence_summaries": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "match_id": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "source_url": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "satisfied_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "unsatisfied_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "unknown_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "reference_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "title": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "snippet": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "url",
                    "title",
                    "snippet"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "match_id",
              "source",
              "source_url",
              "title",
              "description",
              "satisfied_count",
              "unsatisfied_count",
              "unknown_count",
              "reference_count",
              "references"
            ],
            "additionalProperties": false
          }
        },
        "evidence_summaries_unavailable": {
          "type": "boolean"
        },
        "experience_summaries": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "company_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "location": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "start_text": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "end_text": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_current": {
                "type": "boolean"
              }
            },
            "required": [
              "title",
              "company_name",
              "location",
              "start_text",
              "end_text",
              "is_current"
            ],
            "additionalProperties": false
          }
        },
        "contact_points": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "contact_point_id": {
                "type": "string"
              },
              "person_id": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "email",
                  "phone",
                  "linkedin",
                  "x",
                  "other"
                ]
              },
              "value": {
                "type": "string"
              },
              "normalized_value": {
                "type": "string"
              },
              "label": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "unverified",
                  "verified",
                  "bounced",
                  "invalid",
                  "opted_out",
                  "stale",
                  "do_not_contact"
                ]
              },
              "confidence": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              },
              "is_primary": {
                "type": "boolean"
              },
              "source": {
                "type": "string",
                "enum": [
                  "manual",
                  "inbound_email",
                  "gmail_sync",
                  "provider",
                  "research_note",
                  "linkedin_profile",
                  "import"
                ]
              },
              "source_reference_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_verified_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_observed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "contact_point_id",
              "person_id",
              "kind",
              "value",
              "normalized_value",
              "label",
              "status",
              "confidence",
              "is_primary",
              "source",
              "source_reference_id",
              "last_verified_at",
              "last_observed_at",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "contact_points_unavailable": {
          "type": "boolean"
        },
        "missing_data": {
          "type": "object",
          "properties": {
            "about_summary": {
              "type": "boolean"
            },
            "country_code": {
              "type": "boolean"
            },
            "source_profile_url": {
              "type": "boolean"
            },
            "profile_image_url": {
              "type": "boolean"
            },
            "current_employment": {
              "type": "boolean"
            },
            "search_origins": {
              "type": "boolean"
            },
            "evidence_references": {
              "type": "boolean"
            }
          },
          "required": [
            "about_summary",
            "country_code",
            "source_profile_url",
            "profile_image_url",
            "current_employment",
            "search_origins",
            "evidence_references"
          ],
          "additionalProperties": false
        },
        "research_notes": {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "note_id": {
                    "type": "string"
                  },
                  "entity_type": {
                    "type": "string",
                    "enum": [
                      "company",
                      "person",
                      "opportunity"
                    ]
                  },
                  "entity_id": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "body_markdown": {
                    "type": "string"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "source_urls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "related_note_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "created_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "updated_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "note_id",
                  "entity_type",
                  "entity_id",
                  "title",
                  "body_markdown",
                  "tags",
                  "source_urls",
                  "related_note_ids",
                  "created_at",
                  "updated_at"
                ],
                "additionalProperties": false
              }
            },
            "truncated": {
              "type": "boolean"
            }
          },
          "required": [
            "items",
            "truncated"
          ],
          "additionalProperties": false
        },
        "evidence_reference_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "person_id",
        "name",
        "current_title",
        "current_company_id",
        "current_company_name",
        "current_company_size_band",
        "current_employment_source_claim",
        "current_title_source_claim",
        "location",
        "country_code",
        "about_summary",
        "source_profile_url",
        "profile_image_url",
        "primary_email",
        "primary_email_status",
        "primary_email_source",
        "primary_phone",
        "primary_phone_status",
        "primary_phone_source",
        "recent_match_count",
        "recent_matches_truncated",
        "latest_surfaced_at",
        "updated_at",
        "last_observed_at",
        "completeness",
        "revision",
        "canonical_profile",
        "rollups_unavailable",
        "current_employment",
        "known_companies",
        "known_companies_unavailable",
        "recent_searches",
        "matches",
        "matches_continue_cursor",
        "matches_has_more",
        "matches_truncated",
        "evidence_summaries",
        "evidence_summaries_unavailable",
        "experience_summaries",
        "contact_points",
        "contact_points_unavailable",
        "missing_data",
        "research_notes",
        "evidence_reference_count"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "status",
    "receipt",
    "person"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

plan_person_title_correction

Plan a canonical person current_title correction, not an employment-row title (use plan_employment_correction for employment_id). Requires a durable reason and 1-10 HTTPS evidence URLs. Inspect get_person and the plan; for an authorized exact correction, ready may be applied in the same script using plan.revision and identical inputs. no_change means do not apply. Read-only; a plan-only request never authorizes apply.

people / read-only

Input schema
{
  "type": "object",
  "properties": {
    "person_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "current_title": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 300
    },
    "reason": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 4000
    },
    "evidence_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1,
        "maxLength": 2048
      },
      "minItems": 1,
      "maxItems": 10
    }
  },
  "required": [
    "person_id",
    "current_title",
    "reason",
    "evidence_urls"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "plan": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "ready",
            "no_change"
          ]
        },
        "person_id": {
          "type": "string"
        },
        "full_name": {
          "type": "string"
        },
        "before_title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "proposed_title": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "evidence_urls": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "revision": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        }
      },
      "required": [
        "status",
        "person_id",
        "full_name",
        "before_title",
        "proposed_title",
        "reason",
        "evidence_urls",
        "revision"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "plan"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

apply_person_title_correction

Apply a ready, authorized canonical person current_title correction with expected_revision from plan_person_title_correction and identical inputs. Returns a durable receipt plus compact saved person readback. Check receipt.status: applied has receipt_id and after_title; refused has refusal.code, person:null and zero writes. Read the receipt and get_person in the same script to independently verify; return only the changed fields and receipt_id.

people

Input schema
{
  "type": "object",
  "properties": {
    "person_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "current_title": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 300
    },
    "reason": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 4000
    },
    "evidence_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1,
        "maxLength": 2048
      },
      "minItems": 1,
      "maxItems": 10
    },
    "expected_revision": {
      "type": "string",
      "pattern": "^sha256:[0-9a-f]{64}$"
    }
  },
  "required": [
    "person_id",
    "current_title",
    "reason",
    "evidence_urls",
    "expected_revision"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "receipt": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "applied"
              ]
            },
            "receipt_id": {
              "type": "string"
            },
            "person_id": {
              "type": "string"
            },
            "accepted_revision": {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            "reason": {
              "type": "string"
            },
            "evidence_urls": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "before_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "after_title": {
              "type": "string"
            },
            "person_updated_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "applied_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "idempotent_replay": {
              "type": "boolean"
            }
          },
          "required": [
            "status",
            "receipt_id",
            "person_id",
            "accepted_revision",
            "reason",
            "evidence_urls",
            "before_title",
            "after_title",
            "person_updated_at",
            "applied_at"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "refused"
              ]
            },
            "person_id": {
              "type": "string"
            },
            "full_name": {
              "type": "string"
            },
            "before_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "proposed_title": {
              "type": "string"
            },
            "reason": {
              "type": "string"
            },
            "evidence_urls": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "revision": {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            "expected_revision": {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            "refusal": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "stale_revision",
                    "no_change"
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "status",
            "person_id",
            "full_name",
            "before_title",
            "proposed_title",
            "reason",
            "evidence_urls",
            "revision",
            "expected_revision",
            "refusal"
          ],
          "additionalProperties": false
        }
      ]
    },
    "person": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "person_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "current_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_company_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_company_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "location": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "source_profile_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_email": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_email_status": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "unverified",
                    "verified",
                    "bounced",
                    "invalid",
                    "opted_out",
                    "stale",
                    "do_not_contact"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "revision": {
              "type": "string"
            },
            "canonical_profile": {
              "type": "object",
              "properties": {
                "source_profile_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "current_title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "location": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "country_code": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "about_summary": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "profile_image_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "source_profile_url",
                "current_title",
                "location",
                "country_code",
                "about_summary",
                "profile_image_url"
              ],
              "additionalProperties": false
            },
            "current_employment": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "employment_id": {
                      "type": "string"
                    },
                    "company_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "title": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "location": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "is_current": {
                      "type": "boolean"
                    },
                    "last_observed_at": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "source_claim": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "source": {
                              "type": "string",
                              "enum": [
                                "import"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "unverified"
                              ]
                            },
                            "reference_id": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "source",
                            "status",
                            "reference_id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "employment_id",
                    "company_id",
                    "name",
                    "title",
                    "location",
                    "is_current",
                    "last_observed_at",
                    "source_claim"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "rollups_unavailable": {
              "type": "boolean"
            },
            "known_companies_unavailable": {
              "type": "boolean"
            },
            "current_company_size_band": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_employment_source_claim": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "enum": [
                        "import"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "unverified"
                      ]
                    },
                    "reference_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "source",
                    "status",
                    "reference_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_title_source_claim": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "enum": [
                        "import"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "unverified"
                      ]
                    },
                    "reference_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "source",
                    "status",
                    "reference_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "country_code": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "about_summary": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "profile_image_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_email_source": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "manual",
                    "inbound_email",
                    "gmail_sync",
                    "provider",
                    "research_note",
                    "linkedin_profile",
                    "import"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_phone": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_phone_status": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "unverified",
                    "verified",
                    "bounced",
                    "invalid",
                    "opted_out",
                    "stale",
                    "do_not_contact"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_phone_source": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "manual",
                    "inbound_email",
                    "gmail_sync",
                    "provider",
                    "research_note",
                    "linkedin_profile",
                    "import"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "recent_match_count": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "recent_matches_truncated": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "latest_surfaced_at": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "last_observed_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "completeness": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "rich",
                    "partial",
                    "skeleton",
                    "needs_refresh"
                  ]
                },
                "missing_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "present_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "priority_missing_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "status",
                "missing_fields",
                "present_fields",
                "priority_missing_fields"
              ],
              "additionalProperties": false
            },
            "known_companies": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "employment_id": {
                    "type": "string"
                  },
                  "company_id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "location": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "is_current": {
                    "type": "boolean"
                  },
                  "last_observed_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "source_claim": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "source": {
                            "type": "string",
                            "enum": [
                              "import"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "unverified"
                            ]
                          },
                          "reference_id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "source",
                          "status",
                          "reference_id"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "employment_id",
                  "company_id",
                  "name",
                  "title",
                  "location",
                  "is_current",
                  "last_observed_at",
                  "source_claim"
                ],
                "additionalProperties": false
              }
            },
            "recent_searches": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "search_id": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "target_mode": {
                    "type": "string",
                    "enum": [
                      "people_and_companies",
                      "people",
                      "companies"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "running",
                      "idle",
                      "paused",
                      "reconciling",
                      "complete",
                      "failed"
                    ]
                  },
                  "created_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "completed_at": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "search_id",
                  "label",
                  "target_mode",
                  "status",
                  "created_at",
                  "completed_at"
                ],
                "additionalProperties": false
              }
            },
            "matches": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "match_id": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "source_url": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "person_id": {
                    "type": "string"
                  },
                  "company_id": {
                    "type": "string"
                  },
                  "person_name": {
                    "type": "string"
                  },
                  "person_position": {
                    "type": "string"
                  },
                  "person_location": {
                    "type": "string"
                  },
                  "company_name": {
                    "type": "string"
                  },
                  "company_location": {
                    "type": "string"
                  },
                  "raw_employer_name": {
                    "type": "string"
                  },
                  "person_effect": {
                    "type": "string"
                  },
                  "person_changed_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "company_effect": {
                    "type": "string"
                  },
                  "company_changed_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "company_resolution_status": {
                    "type": "string",
                    "enum": [
                      "resolved",
                      "needs_confirmation",
                      "unresolved",
                      "conflict"
                    ]
                  },
                  "company_resolution_reason": {
                    "type": "string"
                  },
                  "company_candidate_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "effect_error": {
                    "type": "string"
                  },
                  "evaluation_count": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "evidence_reference_count": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "updated_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "match_id",
                  "source",
                  "kind",
                  "evaluation_count",
                  "evidence_reference_count",
                  "created_at",
                  "updated_at"
                ],
                "additionalProperties": false
              }
            },
            "matches_continue_cursor": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "matches_has_more": {
              "type": "boolean"
            },
            "matches_truncated": {
              "type": "boolean"
            },
            "evidence_summaries": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "match_id": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "source_url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "satisfied_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unsatisfied_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unknown_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "reference_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "references": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string"
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "snippet": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "url",
                        "title",
                        "snippet"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "match_id",
                  "source",
                  "source_url",
                  "title",
                  "description",
                  "satisfied_count",
                  "unsatisfied_count",
                  "unknown_count",
                  "reference_count",
                  "references"
                ],
                "additionalProperties": false
              }
            },
            "evidence_summaries_unavailable": {
              "type": "boolean"
            },
            "experience_summaries": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "company_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "location": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "start_text": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "end_text": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "is_current": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "title",
                  "company_name",
                  "location",
                  "start_text",
                  "end_text",
                  "is_current"
                ],
                "additionalProperties": false
              }
            },
            "contact_points": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "contact_point_id": {
                    "type": "string"
                  },
                  "person_id": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "email",
                      "phone",
                      "linkedin",
                      "x",
                      "other"
                    ]
                  },
                  "value": {
                    "type": "string"
                  },
                  "normalized_value": {
                    "type": "string"
                  },
                  "label": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "unverified",
                      "verified",
                      "bounced",
                      "invalid",
                      "opted_out",
                      "stale",
                      "do_not_contact"
                    ]
                  },
                  "confidence": {
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ]
                  },
                  "is_primary": {
                    "type": "boolean"
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "inbound_email",
                      "gmail_sync",
                      "provider",
                      "research_note",
                      "linkedin_profile",
                      "import"
                    ]
                  },
                  "source_reference_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "last_verified_at": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "last_observed_at": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "updated_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "contact_point_id",
                  "person_id",
                  "kind",
                  "value",
                  "normalized_value",
                  "label",
                  "status",
                  "confidence",
                  "is_primary",
                  "source",
                  "source_reference_id",
                  "last_verified_at",
                  "last_observed_at",
                  "created_at",
                  "updated_at"
                ],
                "additionalProperties": false
              }
            },
            "contact_points_unavailable": {
              "type": "boolean"
            },
            "missing_data": {
              "type": "object",
              "properties": {
                "about_summary": {
                  "type": "boolean"
                },
                "country_code": {
                  "type": "boolean"
                },
                "source_profile_url": {
                  "type": "boolean"
                },
                "profile_image_url": {
                  "type": "boolean"
                },
                "current_employment": {
                  "type": "boolean"
                },
                "search_origins": {
                  "type": "boolean"
                },
                "evidence_references": {
                  "type": "boolean"
                }
              },
              "required": [
                "about_summary",
                "country_code",
                "source_profile_url",
                "profile_image_url",
                "current_employment",
                "search_origins",
                "evidence_references"
              ],
              "additionalProperties": false
            },
            "research_notes": {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "note_id": {
                        "type": "string"
                      },
                      "entity_type": {
                        "type": "string",
                        "enum": [
                          "company",
                          "person",
                          "opportunity"
                        ]
                      },
                      "entity_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "body_markdown": {
                        "type": "string"
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "source_urls": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "related_note_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "created_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "updated_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "note_id",
                      "entity_type",
                      "entity_id",
                      "title",
                      "body_markdown",
                      "tags",
                      "source_urls",
                      "related_note_ids",
                      "created_at",
                      "updated_at"
                    ],
                    "additionalProperties": false
                  }
                },
                "truncated": {
                  "type": "boolean"
                }
              },
              "required": [
                "items",
                "truncated"
              ],
              "additionalProperties": false
            },
            "evidence_reference_count": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "person_id",
            "name",
            "current_title",
            "current_company_id",
            "current_company_name",
            "location",
            "source_profile_url",
            "primary_email",
            "primary_email_status",
            "revision",
            "canonical_profile",
            "current_employment",
            "rollups_unavailable",
            "known_companies_unavailable"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "receipt",
    "person"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_person_title_correction_receipt

Read one durable person title-correction receipt by receiptId (receipt_id in MCP). Read-only.

people / read-only

Input schema
{
  "type": "object",
  "properties": {
    "receipt_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "receipt_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "receipt": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "applied"
          ]
        },
        "receipt_id": {
          "type": "string"
        },
        "person_id": {
          "type": "string"
        },
        "accepted_revision": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "reason": {
          "type": "string"
        },
        "evidence_urls": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "before_title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "after_title": {
          "type": "string"
        },
        "person_updated_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "applied_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        }
      },
      "required": [
        "status",
        "receipt_id",
        "person_id",
        "accepted_revision",
        "reason",
        "evidence_urls",
        "before_title",
        "after_title",
        "person_updated_at",
        "applied_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "receipt"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

plan_employment_correction

Plan an employment-row title correction (title), ending a role (end_employment), or both; not a canonical person current_title correction. Read employment_id from get_person current_employment or include known_companies. Requires a durable reason and 1-10 HTTPS evidence URLs. Optional end_date is YYYY-MM or YYYY-MM-DD; no_current_employer requires ending and is refused while other current roles remain. Inspect before/after and get_person: an authorized exact request with status ready may be applied in the same script with plan.revision and identical inputs. Other statuses mean do not apply. Read-only; a plan-only request never authorizes apply.

people / read-only

Input schema
{
  "type": "object",
  "properties": {
    "person_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "employment_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 256
    },
    "title": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 300
    },
    "end_employment": {
      "type": "boolean"
    },
    "end_date": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "allOf": [
        {
          "pattern": "^\\d{4}-\\d{2}(?:-\\d{2})?$"
        }
      ]
    },
    "no_current_employer": {
      "type": "boolean"
    },
    "reason": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 4000
    },
    "evidence_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1,
        "maxLength": 2048
      },
      "minItems": 1,
      "maxItems": 10
    }
  },
  "required": [
    "person_id",
    "employment_id",
    "reason",
    "evidence_urls"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "plan": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "ready",
            "no_change",
            "not_current",
            "other_current_employments"
          ]
        },
        "person_id": {
          "type": "string"
        },
        "full_name": {
          "type": "string"
        },
        "employment_id": {
          "type": "string"
        },
        "company_id": {
          "type": "string"
        },
        "company_name": {
          "type": "string"
        },
        "before_title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "after_title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "end_employment": {
          "type": "boolean"
        },
        "end_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "no_current_employer": {
          "type": "boolean"
        },
        "reason": {
          "type": "string"
        },
        "evidence_urls": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "before": {
          "type": "object",
          "properties": {
            "current_company_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_company_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "current_company_id",
            "current_company_name",
            "current_title"
          ],
          "additionalProperties": false
        },
        "after": {
          "type": "object",
          "properties": {
            "current_company_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_company_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "current_company_id",
            "current_company_name",
            "current_title"
          ],
          "additionalProperties": false
        },
        "other_current_employment_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "revision": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        }
      },
      "required": [
        "status",
        "person_id",
        "full_name",
        "employment_id",
        "company_id",
        "company_name",
        "before_title",
        "after_title",
        "end_employment",
        "end_date",
        "no_current_employer",
        "reason",
        "evidence_urls",
        "before",
        "after",
        "other_current_employment_ids",
        "revision"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "plan"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

apply_employment_correction

Apply a ready, authorized employment correction with plan_employment_correction revision and identical inputs. Retitle updates the row and any canonical title for the displayed role. Ending clears that role's canonical title (always with no_current_employer) and updates people/company lists, counts and tag filters. Stale refresh/research cannot undo it; newer roles still save. Returns a durable receipt and compact saved person readback. Check receipt.status: applied has receipt_id; refused has refusal.code, person:null and zero writes. Exact replay returns the original receipt. Read the receipt and get_person in the same script to independently verify; return only changed fields and receipt_id.

people

Input schema
{
  "type": "object",
  "properties": {
    "person_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "employment_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 256
    },
    "title": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 300
    },
    "end_employment": {
      "type": "boolean"
    },
    "end_date": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "allOf": [
        {
          "pattern": "^\\d{4}-\\d{2}(?:-\\d{2})?$"
        }
      ]
    },
    "no_current_employer": {
      "type": "boolean"
    },
    "reason": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 4000
    },
    "evidence_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1,
        "maxLength": 2048
      },
      "minItems": 1,
      "maxItems": 10
    },
    "expected_revision": {
      "type": "string",
      "pattern": "^sha256:[0-9a-f]{64}$"
    }
  },
  "required": [
    "person_id",
    "employment_id",
    "reason",
    "evidence_urls",
    "expected_revision"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "receipt": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "applied"
              ]
            },
            "receipt_id": {
              "type": "string"
            },
            "person_id": {
              "type": "string"
            },
            "employment_id": {
              "type": "string"
            },
            "company_id": {
              "type": "string"
            },
            "accepted_revision": {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            "reason": {
              "type": "string"
            },
            "evidence_urls": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "before_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "after_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "end_employment": {
              "type": "boolean"
            },
            "end_date": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "no_current_employer": {
              "type": "boolean"
            },
            "before": {
              "type": "object",
              "properties": {
                "current_company_id": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "current_company_name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "current_title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "current_company_id",
                "current_company_name",
                "current_title"
              ],
              "additionalProperties": false
            },
            "after": {
              "type": "object",
              "properties": {
                "current_company_id": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "current_company_name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "current_title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "current_company_id",
                "current_company_name",
                "current_title"
              ],
              "additionalProperties": false
            },
            "person_updated_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "applied_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "idempotent_replay": {
              "type": "boolean"
            }
          },
          "required": [
            "status",
            "receipt_id",
            "person_id",
            "employment_id",
            "company_id",
            "accepted_revision",
            "reason",
            "evidence_urls",
            "before_title",
            "after_title",
            "end_employment",
            "end_date",
            "no_current_employer",
            "before",
            "after",
            "person_updated_at",
            "applied_at"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "refused"
              ]
            },
            "person_id": {
              "type": "string"
            },
            "full_name": {
              "type": "string"
            },
            "employment_id": {
              "type": "string"
            },
            "company_id": {
              "type": "string"
            },
            "company_name": {
              "type": "string"
            },
            "before_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "after_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "end_employment": {
              "type": "boolean"
            },
            "end_date": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "no_current_employer": {
              "type": "boolean"
            },
            "reason": {
              "type": "string"
            },
            "evidence_urls": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "before": {
              "type": "object",
              "properties": {
                "current_company_id": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "current_company_name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "current_title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "current_company_id",
                "current_company_name",
                "current_title"
              ],
              "additionalProperties": false
            },
            "after": {
              "type": "object",
              "properties": {
                "current_company_id": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "current_company_name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "current_title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "current_company_id",
                "current_company_name",
                "current_title"
              ],
              "additionalProperties": false
            },
            "other_current_employment_ids": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "revision": {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            "expected_revision": {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            "refusal": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "stale_revision",
                    "no_change",
                    "not_current",
                    "other_current_employments"
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "status",
            "person_id",
            "full_name",
            "employment_id",
            "company_id",
            "company_name",
            "before_title",
            "after_title",
            "end_employment",
            "end_date",
            "no_current_employer",
            "reason",
            "evidence_urls",
            "before",
            "after",
            "other_current_employment_ids",
            "revision",
            "expected_revision",
            "refusal"
          ],
          "additionalProperties": false
        }
      ]
    },
    "person": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "person_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "current_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_company_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_company_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "location": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "source_profile_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_email": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_email_status": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "unverified",
                    "verified",
                    "bounced",
                    "invalid",
                    "opted_out",
                    "stale",
                    "do_not_contact"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "revision": {
              "type": "string"
            },
            "canonical_profile": {
              "type": "object",
              "properties": {
                "source_profile_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "current_title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "location": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "country_code": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "about_summary": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "profile_image_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "source_profile_url",
                "current_title",
                "location",
                "country_code",
                "about_summary",
                "profile_image_url"
              ],
              "additionalProperties": false
            },
            "current_employment": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "employment_id": {
                      "type": "string"
                    },
                    "company_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "title": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "location": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "is_current": {
                      "type": "boolean"
                    },
                    "last_observed_at": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "source_claim": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "source": {
                              "type": "string",
                              "enum": [
                                "import"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "unverified"
                              ]
                            },
                            "reference_id": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "source",
                            "status",
                            "reference_id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "employment_id",
                    "company_id",
                    "name",
                    "title",
                    "location",
                    "is_current",
                    "last_observed_at",
                    "source_claim"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "rollups_unavailable": {
              "type": "boolean"
            },
            "known_companies_unavailable": {
              "type": "boolean"
            },
            "current_company_size_band": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_employment_source_claim": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "enum": [
                        "import"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "unverified"
                      ]
                    },
                    "reference_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "source",
                    "status",
                    "reference_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_title_source_claim": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "enum": [
                        "import"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "unverified"
                      ]
                    },
                    "reference_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "source",
                    "status",
                    "reference_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "country_code": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "about_summary": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "profile_image_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_email_source": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "manual",
                    "inbound_email",
                    "gmail_sync",
                    "provider",
                    "research_note",
                    "linkedin_profile",
                    "import"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_phone": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_phone_status": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "unverified",
                    "verified",
                    "bounced",
                    "invalid",
                    "opted_out",
                    "stale",
                    "do_not_contact"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_phone_source": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "manual",
                    "inbound_email",
                    "gmail_sync",
                    "provider",
                    "research_note",
                    "linkedin_profile",
                    "import"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "recent_match_count": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "recent_matches_truncated": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "latest_surfaced_at": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "last_observed_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "completeness": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "rich",
                    "partial",
                    "skeleton",
                    "needs_refresh"
                  ]
                },
                "missing_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "present_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "priority_missing_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "status",
                "missing_fields",
                "present_fields",
                "priority_missing_fields"
              ],
              "additionalProperties": false
            },
            "known_companies": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "employment_id": {
                    "type": "string"
                  },
                  "company_id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "location": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "is_current": {
                    "type": "boolean"
                  },
                  "last_observed_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "source_claim": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "source": {
                            "type": "string",
                            "enum": [
                              "import"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "unverified"
                            ]
                          },
                          "reference_id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "source",
                          "status",
                          "reference_id"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "employment_id",
                  "company_id",
                  "name",
                  "title",
                  "location",
                  "is_current",
                  "last_observed_at",
                  "source_claim"
                ],
                "additionalProperties": false
              }
            },
            "recent_searches": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "search_id": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "target_mode": {
                    "type": "string",
                    "enum": [
                      "people_and_companies",
                      "people",
                      "companies"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "running",
                      "idle",
                      "paused",
                      "reconciling",
                      "complete",
                      "failed"
                    ]
                  },
                  "created_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "completed_at": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "search_id",
                  "label",
                  "target_mode",
                  "status",
                  "created_at",
                  "completed_at"
                ],
                "additionalProperties": false
              }
            },
            "matches": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "match_id": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "source_url": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "person_id": {
                    "type": "string"
                  },
                  "company_id": {
                    "type": "string"
                  },
                  "person_name": {
                    "type": "string"
                  },
                  "person_position": {
                    "type": "string"
                  },
                  "person_location": {
                    "type": "string"
                  },
                  "company_name": {
                    "type": "string"
                  },
                  "company_location": {
                    "type": "string"
                  },
                  "raw_employer_name": {
                    "type": "string"
                  },
                  "person_effect": {
                    "type": "string"
                  },
                  "person_changed_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "company_effect": {
                    "type": "string"
                  },
                  "company_changed_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "company_resolution_status": {
                    "type": "string",
                    "enum": [
                      "resolved",
                      "needs_confirmation",
                      "unresolved",
                      "conflict"
                    ]
                  },
                  "company_resolution_reason": {
                    "type": "string"
                  },
                  "company_candidate_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "effect_error": {
                    "type": "string"
                  },
                  "evaluation_count": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "evidence_reference_count": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "updated_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "match_id",
                  "source",
                  "kind",
                  "evaluation_count",
                  "evidence_reference_count",
                  "created_at",
                  "updated_at"
                ],
                "additionalProperties": false
              }
            },
            "matches_continue_cursor": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "matches_has_more": {
              "type": "boolean"
            },
            "matches_truncated": {
              "type": "boolean"
            },
            "evidence_summaries": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "match_id": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "source_url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "satisfied_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unsatisfied_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unknown_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "reference_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "references": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string"
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "snippet": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "url",
                        "title",
                        "snippet"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "match_id",
                  "source",
                  "source_url",
                  "title",
                  "description",
                  "satisfied_count",
                  "unsatisfied_count",
                  "unknown_count",
                  "reference_count",
                  "references"
                ],
                "additionalProperties": false
              }
            },
            "evidence_summaries_unavailable": {
              "type": "boolean"
            },
            "experience_summaries": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "company_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "location": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "start_text": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "end_text": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "is_current": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "title",
                  "company_name",
                  "location",
                  "start_text",
                  "end_text",
                  "is_current"
                ],
                "additionalProperties": false
              }
            },
            "contact_points": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "contact_point_id": {
                    "type": "string"
                  },
                  "person_id": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "email",
                      "phone",
                      "linkedin",
                      "x",
                      "other"
                    ]
                  },
                  "value": {
                    "type": "string"
                  },
                  "normalized_value": {
                    "type": "string"
                  },
                  "label": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "unverified",
                      "verified",
                      "bounced",
                      "invalid",
                      "opted_out",
                      "stale",
                      "do_not_contact"
                    ]
                  },
                  "confidence": {
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ]
                  },
                  "is_primary": {
                    "type": "boolean"
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "inbound_email",
                      "gmail_sync",
                      "provider",
                      "research_note",
                      "linkedin_profile",
                      "import"
                    ]
                  },
                  "source_reference_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "last_verified_at": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "last_observed_at": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "updated_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "contact_point_id",
                  "person_id",
                  "kind",
                  "value",
                  "normalized_value",
                  "label",
                  "status",
                  "confidence",
                  "is_primary",
                  "source",
                  "source_reference_id",
                  "last_verified_at",
                  "last_observed_at",
                  "created_at",
                  "updated_at"
                ],
                "additionalProperties": false
              }
            },
            "contact_points_unavailable": {
              "type": "boolean"
            },
            "missing_data": {
              "type": "object",
              "properties": {
                "about_summary": {
                  "type": "boolean"
                },
                "country_code": {
                  "type": "boolean"
                },
                "source_profile_url": {
                  "type": "boolean"
                },
                "profile_image_url": {
                  "type": "boolean"
                },
                "current_employment": {
                  "type": "boolean"
                },
                "search_origins": {
                  "type": "boolean"
                },
                "evidence_references": {
                  "type": "boolean"
                }
              },
              "required": [
                "about_summary",
                "country_code",
                "source_profile_url",
                "profile_image_url",
                "current_employment",
                "search_origins",
                "evidence_references"
              ],
              "additionalProperties": false
            },
            "research_notes": {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "note_id": {
                        "type": "string"
                      },
                      "entity_type": {
                        "type": "string",
                        "enum": [
                          "company",
                          "person",
                          "opportunity"
                        ]
                      },
                      "entity_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "body_markdown": {
                        "type": "string"
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "source_urls": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "related_note_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "created_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "updated_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "note_id",
                      "entity_type",
                      "entity_id",
                      "title",
                      "body_markdown",
                      "tags",
                      "source_urls",
                      "related_note_ids",
                      "created_at",
                      "updated_at"
                    ],
                    "additionalProperties": false
                  }
                },
                "truncated": {
                  "type": "boolean"
                }
              },
              "required": [
                "items",
                "truncated"
              ],
              "additionalProperties": false
            },
            "evidence_reference_count": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "person_id",
            "name",
            "current_title",
            "current_company_id",
            "current_company_name",
            "location",
            "source_profile_url",
            "primary_email",
            "primary_email_status",
            "revision",
            "canonical_profile",
            "current_employment",
            "rollups_unavailable",
            "known_companies_unavailable"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "receipt",
    "person"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_employment_correction_receipt

Read one durable employment correction receipt by receiptId (receipt_id in MCP). Read-only.

people / read-only

Input schema
{
  "type": "object",
  "properties": {
    "receipt_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "receipt_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "receipt": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "applied"
          ]
        },
        "receipt_id": {
          "type": "string"
        },
        "person_id": {
          "type": "string"
        },
        "employment_id": {
          "type": "string"
        },
        "company_id": {
          "type": "string"
        },
        "accepted_revision": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "reason": {
          "type": "string"
        },
        "evidence_urls": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "before_title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "after_title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "end_employment": {
          "type": "boolean"
        },
        "end_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "no_current_employer": {
          "type": "boolean"
        },
        "before": {
          "type": "object",
          "properties": {
            "current_company_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_company_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "current_company_id",
            "current_company_name",
            "current_title"
          ],
          "additionalProperties": false
        },
        "after": {
          "type": "object",
          "properties": {
            "current_company_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_company_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "current_company_id",
            "current_company_name",
            "current_title"
          ],
          "additionalProperties": false
        },
        "person_updated_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "applied_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        }
      },
      "required": [
        "status",
        "receipt_id",
        "person_id",
        "employment_id",
        "company_id",
        "accepted_revision",
        "reason",
        "evidence_urls",
        "before_title",
        "after_title",
        "end_employment",
        "end_date",
        "no_current_employer",
        "before",
        "after",
        "person_updated_at",
        "applied_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "receipt"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

plan_person_import

Review up to 20 known people from one sheet of a source file before importing without any provider call. A source row is identified by sourceSha256, sourceSheet, and sourceRow (snake_case in MCP). Each row gets create, update, no_change, already_imported, or hold with a holdCode for employer, email, profile, name, duplicate, or company identity conflicts. Returns a revision bound to the exact rows and current records. Read-only.

people / read-only

Input schema
{
  "type": "object",
  "properties": {
    "source_sha256": {
      "type": "string",
      "pattern": "^\\s*[0-9a-fA-F]{64}\\s*$",
      "description": "Hex SHA-256 of the exact source file."
    },
    "source_sheet": {
      "type": "string",
      "maxLength": 200
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source_row": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "first_name": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 200
          },
          "last_name": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 200
          },
          "email": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 300
          },
          "profile_url": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 2048
          },
          "company_id": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1,
            "maxLength": 300
          },
          "company_name": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1,
            "maxLength": 300
          },
          "company_website": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 2048
          },
          "company_linkedin_url": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 2048
          },
          "title": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 300
          }
        },
        "required": [
          "source_row",
          "first_name",
          "last_name",
          "profile_url",
          "company_id",
          "company_name"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 20
    }
  },
  "required": [
    "source_sha256",
    "source_sheet",
    "rows"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "plan": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "planned"
          ]
        },
        "source_sha256": {
          "type": "string"
        },
        "source_sheet": {
          "type": "string"
        },
        "rows": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "source_row": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "NaN",
                          "Infinity",
                          "-Infinity"
                        ]
                      }
                    ]
                  },
                  "row_revision": {
                    "type": "string",
                    "pattern": "^sha256:[0-9a-f]{64}$"
                  },
                  "company_id": {
                    "type": "string"
                  },
                  "person_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "signals": {
                    "type": "object",
                    "properties": {
                      "email_domain_matches_company_website": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "email_domain_matches_company_website"
                    ],
                    "additionalProperties": false
                  },
                  "state": {
                    "type": "object",
                    "properties": {
                      "company_updated_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "person_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "person_updated_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "employments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "employment_id": {
                              "type": "string"
                            },
                            "organization_doc_id": {
                              "type": "string"
                            },
                            "is_current": {
                              "type": "boolean"
                            },
                            "updated_at": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "NaN",
                                    "Infinity",
                                    "-Infinity"
                                  ]
                                }
                              ]
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "employment_id",
                            "organization_doc_id",
                            "is_current",
                            "updated_at",
                            "title"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "email_owner_person_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "prior_receipt_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "company_updated_at",
                      "person_id",
                      "person_updated_at",
                      "employments",
                      "email_owner_person_ids",
                      "prior_receipt_id"
                    ],
                    "additionalProperties": false
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "create",
                      "update",
                      "no_change"
                    ]
                  },
                  "email_effect": {
                    "type": "string",
                    "enum": [
                      "added_primary",
                      "added_secondary",
                      "already_present",
                      "none"
                    ]
                  },
                  "employment_effect": {
                    "type": "string",
                    "enum": [
                      "created_unverified",
                      "existing_current",
                      "suppressed",
                      "none"
                    ]
                  }
                },
                "required": [
                  "source_row",
                  "row_revision",
                  "company_id",
                  "person_id",
                  "signals",
                  "state",
                  "action",
                  "email_effect",
                  "employment_effect"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "source_row": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "NaN",
                          "Infinity",
                          "-Infinity"
                        ]
                      }
                    ]
                  },
                  "row_revision": {
                    "type": "string",
                    "pattern": "^sha256:[0-9a-f]{64}$"
                  },
                  "company_id": {
                    "type": "string"
                  },
                  "person_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "signals": {
                    "type": "object",
                    "properties": {
                      "email_domain_matches_company_website": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "email_domain_matches_company_website"
                    ],
                    "additionalProperties": false
                  },
                  "state": {
                    "type": "object",
                    "properties": {
                      "company_updated_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "person_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "person_updated_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "employments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "employment_id": {
                              "type": "string"
                            },
                            "organization_doc_id": {
                              "type": "string"
                            },
                            "is_current": {
                              "type": "boolean"
                            },
                            "updated_at": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "NaN",
                                    "Infinity",
                                    "-Infinity"
                                  ]
                                }
                              ]
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "employment_id",
                            "organization_doc_id",
                            "is_current",
                            "updated_at",
                            "title"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "email_owner_person_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "prior_receipt_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "company_updated_at",
                      "person_id",
                      "person_updated_at",
                      "employments",
                      "email_owner_person_ids",
                      "prior_receipt_id"
                    ],
                    "additionalProperties": false
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "hold"
                    ]
                  },
                  "hold_code": {
                    "type": "string"
                  },
                  "hold_reason": {
                    "type": "string"
                  },
                  "email_effect": {
                    "type": "string",
                    "enum": [
                      "none"
                    ]
                  },
                  "employment_effect": {
                    "type": "string",
                    "enum": [
                      "none",
                      "suppressed"
                    ]
                  }
                },
                "required": [
                  "source_row",
                  "row_revision",
                  "company_id",
                  "person_id",
                  "signals",
                  "state",
                  "action",
                  "hold_code",
                  "hold_reason",
                  "email_effect",
                  "employment_effect"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "source_row": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "NaN",
                          "Infinity",
                          "-Infinity"
                        ]
                      }
                    ]
                  },
                  "row_revision": {
                    "type": "string",
                    "pattern": "^sha256:[0-9a-f]{64}$"
                  },
                  "company_id": {
                    "type": "string"
                  },
                  "person_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "signals": {
                    "type": "object",
                    "properties": {
                      "email_domain_matches_company_website": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "email_domain_matches_company_website"
                    ],
                    "additionalProperties": false
                  },
                  "state": {
                    "type": "object",
                    "properties": {
                      "company_updated_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "person_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "person_updated_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "employments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "employment_id": {
                              "type": "string"
                            },
                            "organization_doc_id": {
                              "type": "string"
                            },
                            "is_current": {
                              "type": "boolean"
                            },
                            "updated_at": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "NaN",
                                    "Infinity",
                                    "-Infinity"
                                  ]
                                }
                              ]
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "employment_id",
                            "organization_doc_id",
                            "is_current",
                            "updated_at",
                            "title"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "email_owner_person_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "prior_receipt_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "company_updated_at",
                      "person_id",
                      "person_updated_at",
                      "employments",
                      "email_owner_person_ids",
                      "prior_receipt_id"
                    ],
                    "additionalProperties": false
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "already_imported"
                    ]
                  },
                  "prior_receipt_id": {
                    "type": "string"
                  },
                  "prior_row_revision_matches": {
                    "type": "boolean"
                  },
                  "email_effect": {
                    "type": "string",
                    "enum": [
                      "none"
                    ]
                  },
                  "employment_effect": {
                    "type": "string",
                    "enum": [
                      "none"
                    ]
                  }
                },
                "required": [
                  "source_row",
                  "row_revision",
                  "company_id",
                  "person_id",
                  "signals",
                  "state",
                  "action",
                  "prior_receipt_id",
                  "prior_row_revision_matches",
                  "email_effect",
                  "employment_effect"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "counts": {
          "type": "object",
          "properties": {
            "create": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "update": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "no_change": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "hold": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "already_imported": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            }
          },
          "additionalProperties": false
        },
        "revision": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        }
      },
      "required": [
        "status",
        "source_sha256",
        "source_sheet",
        "rows",
        "counts",
        "revision"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "plan"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

apply_person_import

Apply a reviewed plan with identical rows and its exact revision without any provider call. Emails are saved as unverified import contacts; new current employments carry unverified import claims. Existing canonical values are never overwritten, and held rows write only a receipt. Writes no outreach, campaign, or tag records. A stale revision is refused with zero writes; an exact replay returns the original receipts.

people

Input schema
{
  "type": "object",
  "properties": {
    "source_sha256": {
      "type": "string",
      "pattern": "^\\s*[0-9a-fA-F]{64}\\s*$",
      "description": "Hex SHA-256 of the exact source file."
    },
    "source_sheet": {
      "type": "string",
      "maxLength": 200
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source_row": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "first_name": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 200
          },
          "last_name": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 200
          },
          "email": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 300
          },
          "profile_url": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 2048
          },
          "company_id": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1,
            "maxLength": 300
          },
          "company_name": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1,
            "maxLength": 300
          },
          "company_website": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 2048
          },
          "company_linkedin_url": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 2048
          },
          "title": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "maxLength": 300
          }
        },
        "required": [
          "source_row",
          "first_name",
          "last_name",
          "profile_url",
          "company_id",
          "company_name"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 20
    },
    "expected_revision": {
      "type": "string",
      "pattern": "^sha256:[0-9a-f]{64}$"
    }
  },
  "required": [
    "source_sha256",
    "source_sheet",
    "rows",
    "expected_revision"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "applied"
              ]
            },
            "idempotent_replay": {
              "type": "boolean"
            },
            "revision": {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            "rows": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "receipt_id": {
                        "type": "string"
                      },
                      "source_sha256": {
                        "type": "string"
                      },
                      "source_sheet": {
                        "type": "string"
                      },
                      "source_row": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          }
                        ]
                      },
                      "row_revision": {
                        "type": "string",
                        "pattern": "^sha256:[0-9a-f]{64}$"
                      },
                      "outcome": {
                        "type": "string",
                        "enum": [
                          "created",
                          "updated",
                          "unchanged",
                          "held"
                        ]
                      },
                      "hold_code": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "hold_reason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "company_id": {
                        "type": "string"
                      },
                      "person_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email_effect": {
                        "type": "string",
                        "enum": [
                          "added_primary",
                          "added_secondary",
                          "already_present",
                          "none"
                        ]
                      },
                      "employment_effect": {
                        "type": "string",
                        "enum": [
                          "created_unverified",
                          "existing_current",
                          "suppressed",
                          "none"
                        ]
                      },
                      "readback": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "person_id": {
                                "type": "string"
                              },
                              "full_name": {
                                "type": "string"
                              },
                              "profile_url": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "imported_email": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "value": {
                                        "type": "string"
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "unverified",
                                          "verified",
                                          "bounced",
                                          "invalid",
                                          "opted_out",
                                          "stale",
                                          "do_not_contact"
                                        ]
                                      },
                                      "source": {
                                        "type": "string",
                                        "enum": [
                                          "manual",
                                          "inbound_email",
                                          "gmail_sync",
                                          "provider",
                                          "research_note",
                                          "linkedin_profile",
                                          "import"
                                        ]
                                      },
                                      "confidence": {
                                        "type": "string",
                                        "enum": [
                                          "low",
                                          "medium",
                                          "high"
                                        ]
                                      },
                                      "is_primary": {
                                        "type": "boolean"
                                      },
                                      "source_reference_id": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "value",
                                      "status",
                                      "source",
                                      "confidence",
                                      "is_primary",
                                      "source_reference_id"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "current_employment": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "employment_id": {
                                        "type": "string"
                                      },
                                      "company_id": {
                                        "type": "string"
                                      },
                                      "title": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "source_claim": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "import"
                                                ]
                                              },
                                              "status": {
                                                "type": "string",
                                                "enum": [
                                                  "unverified"
                                                ]
                                              },
                                              "reference_id": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "source",
                                              "status",
                                              "reference_id"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "employment_id",
                                      "company_id",
                                      "title",
                                      "source_claim"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "person_id",
                              "full_name",
                              "profile_url",
                              "imported_email",
                              "current_employment"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "receipt_id",
                      "source_sha256",
                      "source_sheet",
                      "source_row",
                      "row_revision",
                      "outcome",
                      "hold_code",
                      "hold_reason",
                      "company_id",
                      "person_id",
                      "email_effect",
                      "employment_effect",
                      "readback",
                      "created_at"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "source_row": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          }
                        ]
                      },
                      "outcome": {
                        "type": "string",
                        "enum": [
                          "already_imported"
                        ]
                      },
                      "prior_receipt_id": {
                        "type": "string"
                      },
                      "prior_row_revision_matches": {
                        "type": "boolean"
                      },
                      "person_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "source_row",
                      "outcome",
                      "prior_receipt_id",
                      "prior_row_revision_matches",
                      "person_id"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          },
          "required": [
            "status",
            "idempotent_replay",
            "revision",
            "rows"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "refused"
              ]
            },
            "expected_revision": {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            "plan": {
              "type": "object",
              "properties": {
                "source_sha256": {
                  "type": "string"
                },
                "source_sheet": {
                  "type": "string"
                },
                "rows": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "source_row": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "NaN",
                                  "Infinity",
                                  "-Infinity"
                                ]
                              }
                            ]
                          },
                          "row_revision": {
                            "type": "string",
                            "pattern": "^sha256:[0-9a-f]{64}$"
                          },
                          "company_id": {
                            "type": "string"
                          },
                          "person_id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "signals": {
                            "type": "object",
                            "properties": {
                              "email_domain_matches_company_website": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "email_domain_matches_company_website"
                            ],
                            "additionalProperties": false
                          },
                          "state": {
                            "type": "object",
                            "properties": {
                              "company_updated_at": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "NaN",
                                      "Infinity",
                                      "-Infinity"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "person_id": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "person_updated_at": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "NaN",
                                      "Infinity",
                                      "-Infinity"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "employments": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "employment_id": {
                                      "type": "string"
                                    },
                                    "organization_doc_id": {
                                      "type": "string"
                                    },
                                    "is_current": {
                                      "type": "boolean"
                                    },
                                    "updated_at": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": [
                                            "NaN",
                                            "Infinity",
                                            "-Infinity"
                                          ]
                                        }
                                      ]
                                    },
                                    "title": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "employment_id",
                                    "organization_doc_id",
                                    "is_current",
                                    "updated_at",
                                    "title"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "email_owner_person_ids": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "prior_receipt_id": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "company_updated_at",
                              "person_id",
                              "person_updated_at",
                              "employments",
                              "email_owner_person_ids",
                              "prior_receipt_id"
                            ],
                            "additionalProperties": false
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "create",
                              "update",
                              "no_change"
                            ]
                          },
                          "email_effect": {
                            "type": "string",
                            "enum": [
                              "added_primary",
                              "added_secondary",
                              "already_present",
                              "none"
                            ]
                          },
                          "employment_effect": {
                            "type": "string",
                            "enum": [
                              "created_unverified",
                              "existing_current",
                              "suppressed",
                              "none"
                            ]
                          }
                        },
                        "required": [
                          "source_row",
                          "row_revision",
                          "company_id",
                          "person_id",
                          "signals",
                          "state",
                          "action",
                          "email_effect",
                          "employment_effect"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "source_row": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "NaN",
                                  "Infinity",
                                  "-Infinity"
                                ]
                              }
                            ]
                          },
                          "row_revision": {
                            "type": "string",
                            "pattern": "^sha256:[0-9a-f]{64}$"
                          },
                          "company_id": {
                            "type": "string"
                          },
                          "person_id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "signals": {
                            "type": "object",
                            "properties": {
                              "email_domain_matches_company_website": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "email_domain_matches_company_website"
                            ],
                            "additionalProperties": false
                          },
                          "state": {
                            "type": "object",
                            "properties": {
                              "company_updated_at": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "NaN",
                                      "Infinity",
                                      "-Infinity"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "person_id": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "person_updated_at": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "NaN",
                                      "Infinity",
                                      "-Infinity"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "employments": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "employment_id": {
                                      "type": "string"
                                    },
                                    "organization_doc_id": {
                                      "type": "string"
                                    },
                                    "is_current": {
                                      "type": "boolean"
                                    },
                                    "updated_at": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": [
                                            "NaN",
                                            "Infinity",
                                            "-Infinity"
                                          ]
                                        }
                                      ]
                                    },
                                    "title": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "employment_id",
                                    "organization_doc_id",
                                    "is_current",
                                    "updated_at",
                                    "title"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "email_owner_person_ids": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "prior_receipt_id": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "company_updated_at",
                              "person_id",
                              "person_updated_at",
                              "employments",
                              "email_owner_person_ids",
                              "prior_receipt_id"
                            ],
                            "additionalProperties": false
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "hold"
                            ]
                          },
                          "hold_code": {
                            "type": "string"
                          },
                          "hold_reason": {
                            "type": "string"
                          },
                          "email_effect": {
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          },
                          "employment_effect": {
                            "type": "string",
                            "enum": [
                              "none",
                              "suppressed"
                            ]
                          }
                        },
                        "required": [
                          "source_row",
                          "row_revision",
                          "company_id",
                          "person_id",
                          "signals",
                          "state",
                          "action",
                          "hold_code",
                          "hold_reason",
                          "email_effect",
                          "employment_effect"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "source_row": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "NaN",
                                  "Infinity",
                                  "-Infinity"
                                ]
                              }
                            ]
                          },
                          "row_revision": {
                            "type": "string",
                            "pattern": "^sha256:[0-9a-f]{64}$"
                          },
                          "company_id": {
                            "type": "string"
                          },
                          "person_id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "signals": {
                            "type": "object",
                            "properties": {
                              "email_domain_matches_company_website": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "email_domain_matches_company_website"
                            ],
                            "additionalProperties": false
                          },
                          "state": {
                            "type": "object",
                            "properties": {
                              "company_updated_at": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "NaN",
                                      "Infinity",
                                      "-Infinity"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "person_id": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "person_updated_at": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "NaN",
                                      "Infinity",
                                      "-Infinity"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "employments": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "employment_id": {
                                      "type": "string"
                                    },
                                    "organization_doc_id": {
                                      "type": "string"
                                    },
                                    "is_current": {
                                      "type": "boolean"
                                    },
                                    "updated_at": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": [
                                            "NaN",
                                            "Infinity",
                                            "-Infinity"
                                          ]
                                        }
                                      ]
                                    },
                                    "title": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "employment_id",
                                    "organization_doc_id",
                                    "is_current",
                                    "updated_at",
                                    "title"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "email_owner_person_ids": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "prior_receipt_id": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "company_updated_at",
                              "person_id",
                              "person_updated_at",
                              "employments",
                              "email_owner_person_ids",
                              "prior_receipt_id"
                            ],
                            "additionalProperties": false
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "already_imported"
                            ]
                          },
                          "prior_receipt_id": {
                            "type": "string"
                          },
                          "prior_row_revision_matches": {
                            "type": "boolean"
                          },
                          "email_effect": {
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          },
                          "employment_effect": {
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "required": [
                          "source_row",
                          "row_revision",
                          "company_id",
                          "person_id",
                          "signals",
                          "state",
                          "action",
                          "prior_receipt_id",
                          "prior_row_revision_matches",
                          "email_effect",
                          "employment_effect"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "counts": {
                  "type": "object",
                  "properties": {
                    "create": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "NaN",
                            "Infinity",
                            "-Infinity"
                          ]
                        }
                      ]
                    },
                    "update": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "NaN",
                            "Infinity",
                            "-Infinity"
                          ]
                        }
                      ]
                    },
                    "no_change": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "NaN",
                            "Infinity",
                            "-Infinity"
                          ]
                        }
                      ]
                    },
                    "hold": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "NaN",
                            "Infinity",
                            "-Infinity"
                          ]
                        }
                      ]
                    },
                    "already_imported": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "NaN",
                            "Infinity",
                            "-Infinity"
                          ]
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "revision": {
                  "type": "string",
                  "pattern": "^sha256:[0-9a-f]{64}$"
                }
              },
              "required": [
                "source_sha256",
                "source_sheet",
                "rows",
                "counts",
                "revision"
              ],
              "additionalProperties": false
            },
            "refusal": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "stale_revision"
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "status",
            "expected_revision",
            "plan",
            "refusal"
          ],
          "additionalProperties": false
        }
      ]
    }
  },
  "required": [
    "result"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_person_import_receipts

Read the latest durable receipt for up to 100 source rows from one file and sheet. Missing rows return not_imported. Read-only.

people / read-only

Input schema
{
  "type": "object",
  "properties": {
    "source_sha256": {
      "type": "string",
      "pattern": "^\\s*[0-9a-fA-F]{64}\\s*$",
      "description": "Hex SHA-256 of the exact source file."
    },
    "source_sheet": {
      "type": "string",
      "maxLength": 200
    },
    "source_rows": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 9007199254740991
      },
      "minItems": 1,
      "maxItems": 100
    }
  },
  "required": [
    "source_sha256",
    "source_sheet",
    "source_rows"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "receipts": {
      "type": "object",
      "properties": {
        "source_sha256": {
          "type": "string"
        },
        "source_sheet": {
          "type": "string"
        },
        "rows": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "receipt_id": {
                    "type": "string"
                  },
                  "source_sha256": {
                    "type": "string"
                  },
                  "source_sheet": {
                    "type": "string"
                  },
                  "source_row": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "NaN",
                          "Infinity",
                          "-Infinity"
                        ]
                      }
                    ]
                  },
                  "row_revision": {
                    "type": "string",
                    "pattern": "^sha256:[0-9a-f]{64}$"
                  },
                  "outcome": {
                    "type": "string",
                    "enum": [
                      "created",
                      "updated",
                      "unchanged",
                      "held"
                    ]
                  },
                  "hold_code": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hold_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "company_id": {
                    "type": "string"
                  },
                  "person_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "email_effect": {
                    "type": "string",
                    "enum": [
                      "added_primary",
                      "added_secondary",
                      "already_present",
                      "none"
                    ]
                  },
                  "employment_effect": {
                    "type": "string",
                    "enum": [
                      "created_unverified",
                      "existing_current",
                      "suppressed",
                      "none"
                    ]
                  },
                  "readback": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "person_id": {
                            "type": "string"
                          },
                          "full_name": {
                            "type": "string"
                          },
                          "profile_url": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "imported_email": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "value": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "unverified",
                                      "verified",
                                      "bounced",
                                      "invalid",
                                      "opted_out",
                                      "stale",
                                      "do_not_contact"
                                    ]
                                  },
                                  "source": {
                                    "type": "string",
                                    "enum": [
                                      "manual",
                                      "inbound_email",
                                      "gmail_sync",
                                      "provider",
                                      "research_note",
                                      "linkedin_profile",
                                      "import"
                                    ]
                                  },
                                  "confidence": {
                                    "type": "string",
                                    "enum": [
                                      "low",
                                      "medium",
                                      "high"
                                    ]
                                  },
                                  "is_primary": {
                                    "type": "boolean"
                                  },
                                  "source_reference_id": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "value",
                                  "status",
                                  "source",
                                  "confidence",
                                  "is_primary",
                                  "source_reference_id"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "current_employment": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "employment_id": {
                                    "type": "string"
                                  },
                                  "company_id": {
                                    "type": "string"
                                  },
                                  "title": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "source_claim": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "import"
                                            ]
                                          },
                                          "status": {
                                            "type": "string",
                                            "enum": [
                                              "unverified"
                                            ]
                                          },
                                          "reference_id": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "status",
                                          "reference_id"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "employment_id",
                                  "company_id",
                                  "title",
                                  "source_claim"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "person_id",
                          "full_name",
                          "profile_url",
                          "imported_email",
                          "current_employment"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "NaN",
                          "Infinity",
                          "-Infinity"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "receipt_id",
                  "source_sha256",
                  "source_sheet",
                  "source_row",
                  "row_revision",
                  "outcome",
                  "hold_code",
                  "hold_reason",
                  "company_id",
                  "person_id",
                  "email_effect",
                  "employment_effect",
                  "readback",
                  "created_at"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "source_row": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "NaN",
                          "Infinity",
                          "-Infinity"
                        ]
                      }
                    ]
                  },
                  "outcome": {
                    "type": "string",
                    "enum": [
                      "not_imported"
                    ]
                  }
                },
                "required": [
                  "source_row",
                  "outcome"
                ],
                "additionalProperties": false
              }
            ]
          }
        }
      },
      "required": [
        "source_sha256",
        "source_sheet",
        "rows"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "receipts"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_people

Find, list, and filter existing saved SCRYU people by text or current-employer company tag. Read-only; never starts person discovery. Rows carry person_id, name, current_title, current_company_id, current_company_name and primary_email_status; include adds named others (for example location, about_summary or primary_email) only when the answer needs them. Resolve tag labels with list_company_tags, then pass companyTagFilter (company_tag_filter in MCP). Combined text and tag filters use intersection semantics. Keep every filter unchanged when passing continueCursor (continue_cursor in MCP) as cursor. Wait for isDone (is_done in MCP) before claiming a complete cohort or exact count.

people / read-only

Input schema
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "description": "Opaque continueCursor from the previous page (continue_cursor in MCP)."
    },
    "search_query": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 4096,
      "description": "Every term must appear in the person's name, title, company, location, email or phone (search_query in MCP). Keep unchanged across cursor pages."
    },
    "company_tag_filter": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 128,
      "description": "Active company tag ID from list_company_tags: people whose current employer has the tag (company_tag_filter in MCP). Keep unchanged across cursor pages."
    },
    "include": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "current_company_size_band",
          "current_employment_source_claim",
          "current_title_source_claim",
          "location",
          "country_code",
          "about_summary",
          "source_profile_url",
          "profile_image_url",
          "primary_email",
          "primary_email_source",
          "primary_phone",
          "primary_phone_status",
          "primary_phone_source",
          "recent_match_count",
          "recent_matches_truncated",
          "latest_surfaced_at",
          "updated_at",
          "last_observed_at",
          "completeness"
        ]
      },
      "minItems": 1,
      "description": "Optional fields to add; every other field is always returned."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "people": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "person_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "current_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_company_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "primary_email_status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "unverified",
                  "verified",
                  "bounced",
                  "invalid",
                  "opted_out",
                  "stale",
                  "do_not_contact"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "current_company_size_band": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_employment_source_claim": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "source": {
                    "type": "string",
                    "enum": [
                      "import"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "unverified"
                    ]
                  },
                  "reference_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "source",
                  "status",
                  "reference_id"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "current_title_source_claim": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "source": {
                    "type": "string",
                    "enum": [
                      "import"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "unverified"
                    ]
                  },
                  "reference_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "source",
                  "status",
                  "reference_id"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "country_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "about_summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_profile_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "profile_image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "primary_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "primary_email_source": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "manual",
                  "inbound_email",
                  "gmail_sync",
                  "provider",
                  "research_note",
                  "linkedin_profile",
                  "import"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "primary_phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "primary_phone_status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "unverified",
                  "verified",
                  "bounced",
                  "invalid",
                  "opted_out",
                  "stale",
                  "do_not_contact"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "primary_phone_source": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "manual",
                  "inbound_email",
                  "gmail_sync",
                  "provider",
                  "research_note",
                  "linkedin_profile",
                  "import"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "recent_match_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "recent_matches_truncated": {
            "type": "boolean"
          },
          "latest_surfaced_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "last_observed_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "completeness": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "rich",
                  "partial",
                  "skeleton",
                  "needs_refresh"
                ]
              },
              "missing_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "present_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "priority_missing_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "status",
              "missing_fields",
              "present_fields",
              "priority_missing_fields"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "person_id",
          "name",
          "current_title",
          "current_company_id",
          "current_company_name",
          "primary_email_status"
        ],
        "additionalProperties": false
      }
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "type": "string"
    }
  },
  "required": [
    "people",
    "is_done",
    "continue_cursor"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_person

Load the current saved person detail view from SCRYU: identity, current employment, email status, and the revision and canonical_profile that update_person guards. include adds others, for example known_companies, contact_points, matches (with paging) or evidence_summaries. Pass matchCursor (match_cursor in MCP) with include matches to continue the matches page. Read-only; does not refresh or discover people.

people / read-only

Input schema
{
  "type": "object",
  "properties": {
    "person_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "match_cursor": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "include": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "current_company_size_band",
          "current_employment_source_claim",
          "current_title_source_claim",
          "country_code",
          "about_summary",
          "profile_image_url",
          "primary_email_source",
          "primary_phone",
          "primary_phone_status",
          "primary_phone_source",
          "recent_match_count",
          "recent_matches_truncated",
          "latest_surfaced_at",
          "updated_at",
          "last_observed_at",
          "completeness",
          "known_companies",
          "recent_searches",
          "matches",
          "evidence_summaries",
          "experience_summaries",
          "contact_points",
          "missing_data",
          "research_notes",
          "evidence_reference_count"
        ]
      },
      "minItems": 1,
      "description": "Optional fields to add; every other field is always returned."
    }
  },
  "required": [
    "person_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "person": {
      "type": "object",
      "properties": {
        "person_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "current_title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_company_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_company_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "location": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_profile_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_email_status": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "unverified",
                "verified",
                "bounced",
                "invalid",
                "opted_out",
                "stale",
                "do_not_contact"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "revision": {
          "type": "string"
        },
        "canonical_profile": {
          "type": "object",
          "properties": {
            "source_profile_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "current_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "location": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "country_code": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "about_summary": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "profile_image_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "source_profile_url",
            "current_title",
            "location",
            "country_code",
            "about_summary",
            "profile_image_url"
          ],
          "additionalProperties": false
        },
        "current_employment": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "employment_id": {
                  "type": "string"
                },
                "company_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "location": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_current": {
                  "type": "boolean"
                },
                "last_observed_at": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "source_claim": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": "string",
                          "enum": [
                            "import"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "unverified"
                          ]
                        },
                        "reference_id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "source",
                        "status",
                        "reference_id"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "employment_id",
                "company_id",
                "name",
                "title",
                "location",
                "is_current",
                "last_observed_at",
                "source_claim"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "rollups_unavailable": {
          "type": "boolean"
        },
        "known_companies_unavailable": {
          "type": "boolean"
        },
        "current_company_size_band": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_employment_source_claim": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "enum": [
                    "import"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "unverified"
                  ]
                },
                "reference_id": {
                  "type": "string"
                }
              },
              "required": [
                "source",
                "status",
                "reference_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "current_title_source_claim": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "enum": [
                    "import"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "unverified"
                  ]
                },
                "reference_id": {
                  "type": "string"
                }
              },
              "required": [
                "source",
                "status",
                "reference_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "country_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "about_summary": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "profile_image_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_email_source": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "manual",
                "inbound_email",
                "gmail_sync",
                "provider",
                "research_note",
                "linkedin_profile",
                "import"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_phone": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_phone_status": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "unverified",
                "verified",
                "bounced",
                "invalid",
                "opted_out",
                "stale",
                "do_not_contact"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_phone_source": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "manual",
                "inbound_email",
                "gmail_sync",
                "provider",
                "research_note",
                "linkedin_profile",
                "import"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "recent_match_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "recent_matches_truncated": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "latest_surfaced_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "last_observed_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "completeness": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "rich",
                "partial",
                "skeleton",
                "needs_refresh"
              ]
            },
            "missing_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "present_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "priority_missing_fields": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "status",
            "missing_fields",
            "present_fields",
            "priority_missing_fields"
          ],
          "additionalProperties": false
        },
        "known_companies": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "employment_id": {
                "type": "string"
              },
              "company_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "location": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_current": {
                "type": "boolean"
              },
              "last_observed_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "source_claim": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "source": {
                        "type": "string",
                        "enum": [
                          "import"
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "unverified"
                        ]
                      },
                      "reference_id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "source",
                      "status",
                      "reference_id"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "employment_id",
              "company_id",
              "name",
              "title",
              "location",
              "is_current",
              "last_observed_at",
              "source_claim"
            ],
            "additionalProperties": false
          }
        },
        "recent_searches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "search_id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "target_mode": {
                "type": "string",
                "enum": [
                  "people_and_companies",
                  "people",
                  "companies"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "running",
                  "idle",
                  "paused",
                  "reconciling",
                  "complete",
                  "failed"
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "completed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "search_id",
              "label",
              "target_mode",
              "status",
              "created_at",
              "completed_at"
            ],
            "additionalProperties": false
          }
        },
        "matches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "match_id": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "source_url": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "person_id": {
                "type": "string"
              },
              "company_id": {
                "type": "string"
              },
              "person_name": {
                "type": "string"
              },
              "person_position": {
                "type": "string"
              },
              "person_location": {
                "type": "string"
              },
              "company_name": {
                "type": "string"
              },
              "company_location": {
                "type": "string"
              },
              "raw_employer_name": {
                "type": "string"
              },
              "person_effect": {
                "type": "string"
              },
              "person_changed_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "company_effect": {
                "type": "string"
              },
              "company_changed_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "company_resolution_status": {
                "type": "string",
                "enum": [
                  "resolved",
                  "needs_confirmation",
                  "unresolved",
                  "conflict"
                ]
              },
              "company_resolution_reason": {
                "type": "string"
              },
              "company_candidate_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "effect_error": {
                "type": "string"
              },
              "evaluation_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "evidence_reference_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "match_id",
              "source",
              "kind",
              "evaluation_count",
              "evidence_reference_count",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "matches_continue_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "matches_has_more": {
          "type": "boolean"
        },
        "matches_truncated": {
          "type": "boolean"
        },
        "evidence_summaries": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "match_id": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "source_url": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "satisfied_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "unsatisfied_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "unknown_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "reference_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "title": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "snippet": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "url",
                    "title",
                    "snippet"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "match_id",
              "source",
              "source_url",
              "title",
              "description",
              "satisfied_count",
              "unsatisfied_count",
              "unknown_count",
              "reference_count",
              "references"
            ],
            "additionalProperties": false
          }
        },
        "evidence_summaries_unavailable": {
          "type": "boolean"
        },
        "experience_summaries": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "company_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "location": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "start_text": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "end_text": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_current": {
                "type": "boolean"
              }
            },
            "required": [
              "title",
              "company_name",
              "location",
              "start_text",
              "end_text",
              "is_current"
            ],
            "additionalProperties": false
          }
        },
        "contact_points": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "contact_point_id": {
                "type": "string"
              },
              "person_id": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "email",
                  "phone",
                  "linkedin",
                  "x",
                  "other"
                ]
              },
              "value": {
                "type": "string"
              },
              "normalized_value": {
                "type": "string"
              },
              "label": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "unverified",
                  "verified",
                  "bounced",
                  "invalid",
                  "opted_out",
                  "stale",
                  "do_not_contact"
                ]
              },
              "confidence": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              },
              "is_primary": {
                "type": "boolean"
              },
              "source": {
                "type": "string",
                "enum": [
                  "manual",
                  "inbound_email",
                  "gmail_sync",
                  "provider",
                  "research_note",
                  "linkedin_profile",
                  "import"
                ]
              },
              "source_reference_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_verified_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_observed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "contact_point_id",
              "person_id",
              "kind",
              "value",
              "normalized_value",
              "label",
              "status",
              "confidence",
              "is_primary",
              "source",
              "source_reference_id",
              "last_verified_at",
              "last_observed_at",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "contact_points_unavailable": {
          "type": "boolean"
        },
        "missing_data": {
          "type": "object",
          "properties": {
            "about_summary": {
              "type": "boolean"
            },
            "country_code": {
              "type": "boolean"
            },
            "source_profile_url": {
              "type": "boolean"
            },
            "profile_image_url": {
              "type": "boolean"
            },
            "current_employment": {
              "type": "boolean"
            },
            "search_origins": {
              "type": "boolean"
            },
            "evidence_references": {
              "type": "boolean"
            }
          },
          "required": [
            "about_summary",
            "country_code",
            "source_profile_url",
            "profile_image_url",
            "current_employment",
            "search_origins",
            "evidence_references"
          ],
          "additionalProperties": false
        },
        "research_notes": {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "note_id": {
                    "type": "string"
                  },
                  "entity_type": {
                    "type": "string",
                    "enum": [
                      "company",
                      "person",
                      "opportunity"
                    ]
                  },
                  "entity_id": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "body_markdown": {
                    "type": "string"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "source_urls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "related_note_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "created_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "updated_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "note_id",
                  "entity_type",
                  "entity_id",
                  "title",
                  "body_markdown",
                  "tags",
                  "source_urls",
                  "related_note_ids",
                  "created_at",
                  "updated_at"
                ],
                "additionalProperties": false
              }
            },
            "truncated": {
              "type": "boolean"
            }
          },
          "required": [
            "items",
            "truncated"
          ],
          "additionalProperties": false
        },
        "evidence_reference_count": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "person_id",
        "name",
        "current_title",
        "current_company_id",
        "current_company_name",
        "location",
        "source_profile_url",
        "primary_email",
        "primary_email_status",
        "revision",
        "canonical_profile",
        "current_employment",
        "rollups_unavailable",
        "known_companies_unavailable"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "person"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_opportunities

Return a bounded opportunity list filtered by stage, outcome, owner, company, health, staleness, due state, or saved text: every search_query term must appear in the deal's name, summary, company, stage, outcome, owner, next action or loss reason. Rows carry ids, name, company, stage, outcome, completion stage, closed_at, pre-sale spend estimate and latest activity; include adds named others only when the answer needs them: booked_value is a Sold deal's signed amount, next_task_title and next_task_due_at are the next action (earliest-due open task), and next_action is legacy typed text. For several deals, list once with their shared filters (such as outcome) and match names in the script. Spend basis and period are on get_opportunity.

opportunities / read-only

Input schema
{
  "type": "object",
  "properties": {
    "stage": {
      "type": "string",
      "enum": [
        "qualification",
        "scoping",
        "contracting"
      ]
    },
    "outcome": {
      "type": "string",
      "enum": [
        "sold",
        "lost"
      ]
    },
    "owner_operator_user_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "company_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "health": {
      "type": "string",
      "enum": [
        "on_track",
        "needs_attention",
        "blocked",
        "stale",
        "unknown"
      ]
    },
    "stale_only": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "string",
          "enum": [
            "true",
            "false"
          ]
        }
      ]
    },
    "due": {
      "type": "string",
      "enum": [
        "overdue",
        "upcoming"
      ]
    },
    "search_query": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "include": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "loss_reason",
          "active_engagement_id",
          "priority",
          "health",
          "owner_operator_user_id",
          "owner_name",
          "estimated_spend_confidence",
          "booked_value",
          "target_close_date",
          "next_action",
          "next_action_due_at",
          "open_task_count",
          "overdue_task_count",
          "open_requirement_count",
          "missing_critical_requirement_count",
          "blocked_requirement_count",
          "next_task_title",
          "next_task_due_at",
          "participant_count",
          "latest_note_at",
          "activity_at"
        ]
      },
      "minItems": 1,
      "description": "Optional fields to add; every other field is always returned."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 250
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "opportunities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "opportunity_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "company_id": {
            "type": "string"
          },
          "company_name": {
            "type": "string"
          },
          "stage": {
            "type": "string",
            "enum": [
              "qualification",
              "scoping",
              "contracting"
            ]
          },
          "outcome": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "sold",
                  "lost"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "completion_stage": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "qualification",
                  "scoping",
                  "contracting"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "closed_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "estimated_spend_min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "estimated_spend_max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "latest_activity_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "loss_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "active_engagement_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "priority": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high",
              "urgent"
            ]
          },
          "health": {
            "type": "string",
            "enum": [
              "on_track",
              "needs_attention",
              "blocked",
              "stale",
              "unknown"
            ]
          },
          "owner_operator_user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "estimated_spend_confidence": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "booked_value": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "target_close_date": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "next_action": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "next_action_due_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "open_task_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "overdue_task_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "open_requirement_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "missing_critical_requirement_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "blocked_requirement_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "next_task_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "next_task_due_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "participant_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "latest_note_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "activity_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "opportunity_id",
          "name",
          "company_id",
          "company_name",
          "stage",
          "outcome",
          "completion_stage",
          "closed_at",
          "estimated_spend_min",
          "estimated_spend_max",
          "latest_activity_at"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "opportunities"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_opportunity

Load the full opportunity detail: company, people, requirements, tasks, notes, activity, signals and coverage. The earliest-due open task is the next action.

opportunities / read-only

Input schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "opportunity_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "opportunity": {
      "type": "object",
      "properties": {
        "opportunity": {
          "type": "object",
          "properties": {
            "opportunity_id": {
              "type": "string"
            },
            "company_id": {
              "type": "string"
            },
            "organization_doc_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "summary": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "stage": {
              "type": "string",
              "enum": [
                "qualification",
                "scoping",
                "contracting"
              ]
            },
            "outcome": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "sold",
                    "lost"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "completion_stage": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "qualification",
                    "scoping",
                    "contracting"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "loss_reason": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "active_engagement_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "priority": {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high",
                "urgent"
              ]
            },
            "health": {
              "type": "string",
              "enum": [
                "on_track",
                "needs_attention",
                "blocked",
                "stale",
                "unknown"
              ]
            },
            "owner_operator_user_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_contact_person_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "source_type": {
              "type": "string",
              "enum": [
                "manual",
                "search",
                "research_objective",
                "campaign",
                "signal",
                "referral"
              ]
            },
            "source_search_ids": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "estimated_spend": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "min": {
                      "type": "number",
                      "minimum": 0
                    },
                    "max": {
                      "type": "number",
                      "minimum": 0
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "USD"
                      ]
                    },
                    "period": {
                      "type": "string",
                      "enum": [
                        "one_time",
                        "monthly",
                        "annual"
                      ]
                    },
                    "confidence": {
                      "type": "string",
                      "enum": [
                        "low",
                        "medium",
                        "high"
                      ]
                    },
                    "basis": {
                      "type": "string"
                    },
                    "source_note_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "currency",
                    "confidence",
                    "basis",
                    "source_note_ids"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "booked_value": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ]
            },
            "target_close_date": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_action": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_action_due_at": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "created_by_operator_user_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "created_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "updated_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "closed_at": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "archived_at": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "opportunity_id",
            "company_id",
            "organization_doc_id",
            "name",
            "summary",
            "stage",
            "outcome",
            "completion_stage",
            "loss_reason",
            "active_engagement_id",
            "priority",
            "health",
            "owner_operator_user_id",
            "primary_contact_person_id",
            "source_type",
            "source_search_ids",
            "estimated_spend",
            "booked_value",
            "target_close_date",
            "next_action",
            "next_action_due_at",
            "created_by_operator_user_id",
            "created_at",
            "updated_at",
            "closed_at",
            "archived_at"
          ],
          "additionalProperties": false
        },
        "company": {
          "type": "object",
          "properties": {
            "company_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "primary_domain": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "source_company_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "hq": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "size_band": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "known_relevant_people_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "recent_match_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "recent_matches_truncated": {
              "type": "boolean"
            },
            "latest_surfaced_at": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "last_observed_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "completeness": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "rich",
                    "partial",
                    "skeleton",
                    "needs_refresh"
                  ]
                },
                "missing_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "present_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "priority_missing_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "status",
                "missing_fields",
                "present_fields",
                "priority_missing_fields"
              ],
              "additionalProperties": false
            },
            "tags": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "tag_id": {
                    "type": "string"
                  },
                  "key": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "color": {
                    "type": "string"
                  },
                  "icon_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "icon_path": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "seeded",
                      "custom"
                    ]
                  }
                },
                "required": [
                  "tag_id",
                  "key",
                  "label",
                  "color",
                  "icon_key",
                  "icon_path",
                  "source"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "company_id",
            "name",
            "primary_domain",
            "source_company_url",
            "hq",
            "size_band",
            "known_relevant_people_count",
            "recent_match_count",
            "recent_matches_truncated",
            "latest_surfaced_at",
            "updated_at",
            "last_observed_at",
            "completeness",
            "tags"
          ],
          "additionalProperties": false
        },
        "participants": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "person_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "person": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "person_id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "current_title": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_company_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_company_name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_company_size_band": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_employment_source_claim": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "import"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "unverified"
                                ]
                              },
                              "reference_id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "source",
                              "status",
                              "reference_id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_title_source_claim": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "import"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "unverified"
                                ]
                              },
                              "reference_id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "source",
                              "status",
                              "reference_id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "location": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "country_code": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "about_summary": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_profile_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "profile_image_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_email": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_email_status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "unverified",
                              "verified",
                              "bounced",
                              "invalid",
                              "opted_out",
                              "stale",
                              "do_not_contact"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_email_source": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "manual",
                              "inbound_email",
                              "gmail_sync",
                              "provider",
                              "research_note",
                              "linkedin_profile",
                              "import"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_phone": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_phone_status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "unverified",
                              "verified",
                              "bounced",
                              "invalid",
                              "opted_out",
                              "stale",
                              "do_not_contact"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_phone_source": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "manual",
                              "inbound_email",
                              "gmail_sync",
                              "provider",
                              "research_note",
                              "linkedin_profile",
                              "import"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "recent_match_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "recent_matches_truncated": {
                        "type": "boolean"
                      },
                      "latest_surfaced_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updated_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "last_observed_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "completeness": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "rich",
                              "partial",
                              "skeleton",
                              "needs_refresh"
                            ]
                          },
                          "missing_fields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "present_fields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "priority_missing_fields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "status",
                          "missing_fields",
                          "present_fields",
                          "priority_missing_fields"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "person_id",
                      "name",
                      "current_title",
                      "current_company_id",
                      "current_company_name",
                      "current_company_size_band",
                      "current_employment_source_claim",
                      "current_title_source_claim",
                      "location",
                      "country_code",
                      "about_summary",
                      "source_profile_url",
                      "profile_image_url",
                      "primary_email",
                      "primary_email_status",
                      "primary_email_source",
                      "primary_phone",
                      "primary_phone_status",
                      "primary_phone_source",
                      "recent_match_count",
                      "recent_matches_truncated",
                      "latest_surfaced_at",
                      "updated_at",
                      "last_observed_at",
                      "completeness"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "operator_user_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "operator_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "role": {
                "type": "string",
                "enum": [
                  "primary_buyer",
                  "economic_buyer",
                  "champion",
                  "technical_evaluator",
                  "security",
                  "legal",
                  "procurement",
                  "blocker",
                  "advisor",
                  "stakeholder",
                  "unknown",
                  "owner",
                  "supporting_operator",
                  "technical_owner",
                  "delivery_owner",
                  "executive_sponsor"
                ]
              },
              "relationship_status": {
                "type": "string",
                "enum": [
                  "unknown",
                  "active",
                  "supportive",
                  "neutral",
                  "blocked"
                ]
              },
              "notes": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_primary": {
                "type": "boolean"
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hydration": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "refresh_id": {
                        "type": "string"
                      },
                      "person_id": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "running",
                          "completed",
                          "failed"
                        ]
                      },
                      "outcome": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "improved",
                              "no_change",
                              "needs_review",
                              "failed"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "changed_fields": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "acquisition_route": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "evidence_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "proposed_fields": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "applied_fields": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string"
                            },
                            "before": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "after": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            "evidence_urls": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^https?:\\/\\/"
                              }
                            },
                            "confidence": {
                              "type": "string",
                              "enum": [
                                "low",
                                "medium",
                                "high"
                              ]
                            }
                          },
                          "required": [
                            "field",
                            "before",
                            "after",
                            "evidence_urls",
                            "confidence"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "rejected_downgrades": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string",
                              "enum": [
                                "proposed_value_absent",
                                "lower_confidence",
                                "stale_evidence",
                                "contradictory_value_requires_review"
                              ]
                            },
                            "previous_value": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "proposed_value": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "previous_confidence": {
                              "type": "string",
                              "enum": [
                                "low",
                                "medium",
                                "high"
                              ]
                            },
                            "proposed_confidence": {
                              "type": "string",
                              "enum": [
                                "low",
                                "medium",
                                "high"
                              ]
                            }
                          },
                          "required": [
                            "field",
                            "reason",
                            "previous_value",
                            "proposed_value",
                            "previous_confidence",
                            "proposed_confidence"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "duration_ms": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "requested_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "started_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completed_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "refresh_id",
                      "person_id",
                      "status",
                      "outcome",
                      "changed_fields",
                      "acquisition_route",
                      "evidence_count",
                      "proposed_fields",
                      "applied_fields",
                      "rejected_downgrades",
                      "duration_ms",
                      "error",
                      "requested_at",
                      "started_at",
                      "completed_at"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": [
                          "unavailable"
                        ]
                      },
                      "reason": {
                        "type": "string",
                        "enum": [
                          "legacy_history_truncated"
                        ]
                      }
                    },
                    "required": [
                      "status",
                      "reason"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "person_id",
              "person",
              "operator_user_id",
              "operator_name",
              "role",
              "relationship_status",
              "notes",
              "is_primary",
              "created_at",
              "updated_at",
              "hydration"
            ],
            "additionalProperties": false
          }
        },
        "participants_truncated": {
          "type": "boolean"
        },
        "requirements": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "requirement_id": {
                "type": "string"
              },
              "category": {
                "type": "string",
                "enum": [
                  "technical",
                  "security",
                  "legal",
                  "procurement",
                  "commercial",
                  "staffing",
                  "implementation",
                  "data",
                  "success_criteria",
                  "other"
                ]
              },
              "title": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "open",
                  "in_progress",
                  "blocked",
                  "satisfied",
                  "dismissed"
                ]
              },
              "priority": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "urgent"
                ]
              },
              "owner_operator_user_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "due_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source_note_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "source_signal_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "completed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "requirement_id",
              "category",
              "title",
              "description",
              "status",
              "priority",
              "owner_operator_user_id",
              "due_at",
              "source_note_ids",
              "source_signal_ids",
              "created_at",
              "updated_at",
              "completed_at"
            ],
            "additionalProperties": false
          }
        },
        "tasks": {
          "type": "object",
          "properties": {
            "revision": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "open": {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "task_id": {
                        "type": "string"
                      },
                      "opportunity_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "open",
                          "in_progress",
                          "blocked",
                          "completed",
                          "dismissed"
                        ]
                      },
                      "assignee_operator_user_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "due_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completed_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_by_operator_user_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_requirement_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_signal_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "updated_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "task_id",
                      "opportunity_id",
                      "title",
                      "description",
                      "status",
                      "assignee_operator_user_id",
                      "due_at",
                      "completed_at",
                      "created_by_operator_user_id",
                      "source_requirement_id",
                      "source_signal_id",
                      "created_at",
                      "updated_at"
                    ],
                    "additionalProperties": false
                  }
                },
                "continue_cursor": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "has_more": {
                  "type": "boolean"
                },
                "truncated": {
                  "type": "boolean"
                }
              },
              "required": [
                "items",
                "continue_cursor",
                "has_more",
                "truncated"
              ],
              "additionalProperties": false
            },
            "recently_completed": {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "task_id": {
                        "type": "string"
                      },
                      "opportunity_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "open",
                          "in_progress",
                          "blocked",
                          "completed",
                          "dismissed"
                        ]
                      },
                      "assignee_operator_user_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "due_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completed_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_by_operator_user_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_requirement_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_signal_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "updated_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "task_id",
                      "opportunity_id",
                      "title",
                      "description",
                      "status",
                      "assignee_operator_user_id",
                      "due_at",
                      "completed_at",
                      "created_by_operator_user_id",
                      "source_requirement_id",
                      "source_signal_id",
                      "created_at",
                      "updated_at"
                    ],
                    "additionalProperties": false
                  }
                },
                "continue_cursor": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "has_more": {
                  "type": "boolean"
                },
                "truncated": {
                  "type": "boolean"
                }
              },
              "required": [
                "items",
                "continue_cursor",
                "has_more",
                "truncated"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "revision",
            "open",
            "recently_completed"
          ],
          "additionalProperties": false
        },
        "notes": {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "note_id": {
                    "type": "string"
                  },
                  "entity_type": {
                    "type": "string",
                    "enum": [
                      "company",
                      "person",
                      "opportunity"
                    ]
                  },
                  "entity_id": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "body_markdown": {
                    "type": "string"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "source_urls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "related_note_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "created_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "updated_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "note_id",
                  "entity_type",
                  "entity_id",
                  "title",
                  "body_markdown",
                  "tags",
                  "source_urls",
                  "related_note_ids",
                  "created_at",
                  "updated_at"
                ],
                "additionalProperties": false
              }
            },
            "truncated": {
              "type": "boolean"
            }
          },
          "required": [
            "items",
            "truncated"
          ],
          "additionalProperties": false
        },
        "activities": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "activity_id": {
                "type": "string"
              },
              "opportunity_id": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "created",
                  "stage_changed",
                  "status_changed",
                  "outcome_changed",
                  "archived",
                  "loss_reason_updated",
                  "booked_value_changed",
                  "owner_changed",
                  "attribution_assigned",
                  "attribution_replaced",
                  "attribution_cleared",
                  "participant_added",
                  "participant_updated",
                  "note_created",
                  "requirement_created",
                  "requirement_updated",
                  "task_created",
                  "task_updated",
                  "task_completed",
                  "search_attached",
                  "objective_attached",
                  "signal_observed",
                  "signal_promoted",
                  "signal_dismissed",
                  "mcp_write"
                ]
              },
              "summary": {
                "type": "string"
              },
              "actor_operator_user_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source": {
                "type": "string"
              },
              "related_entity_type": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "related_entity_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "payload": {},
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "activity_id",
              "opportunity_id",
              "type",
              "summary",
              "actor_operator_user_id",
              "source",
              "related_entity_type",
              "related_entity_id",
              "payload",
              "created_at"
            ],
            "additionalProperties": false
          }
        },
        "attached_searches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "search_id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "target_mode": {
                "type": "string",
                "enum": [
                  "people_and_companies",
                  "people",
                  "companies"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "running",
                  "idle",
                  "paused",
                  "reconciling",
                  "complete",
                  "failed"
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "completed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "search_id",
              "label",
              "target_mode",
              "status",
              "created_at",
              "completed_at"
            ],
            "additionalProperties": false
          }
        },
        "related_campaigns": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "campaign_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "campaign_id",
              "name",
              "status"
            ],
            "additionalProperties": false
          }
        },
        "signals": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "signal_id": {
                "type": "string"
              },
              "target_type": {
                "type": "string",
                "enum": [
                  "company",
                  "person",
                  "opportunity"
                ]
              },
              "target_id": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "company_news",
                  "hiring_change",
                  "funding_or_finance",
                  "leadership_change",
                  "product_change",
                  "technology_signal",
                  "procurement_signal",
                  "stale_opportunity",
                  "missing_next_action",
                  "missing_stakeholder",
                  "requirement_risk",
                  "other"
                ]
              },
              "title": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "evidence_urls": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^https?:\\/\\/"
                }
              },
              "source_search_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source_run_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "confidence": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              },
              "observed_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "review_state": {
                "type": "string",
                "enum": [
                  "new",
                  "dismissed",
                  "attached",
                  "promoted_to_note",
                  "promoted_to_task",
                  "promoted_to_requirement"
                ]
              },
              "reviewed_by_operator_user_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reviewed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "opportunity_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "signal_id",
              "target_type",
              "target_id",
              "kind",
              "title",
              "summary",
              "evidence_urls",
              "source_search_id",
              "source_run_id",
              "confidence",
              "observed_at",
              "created_at",
              "review_state",
              "reviewed_by_operator_user_id",
              "reviewed_at",
              "opportunity_id"
            ],
            "additionalProperties": false
          }
        },
        "person_mentions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "mention_id": {
                "type": "string"
              },
              "opportunity_id": {
                "type": "string"
              },
              "note_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "mention_text": {
                "type": "string"
              },
              "title_hint": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "searching",
                  "resolved",
                  "ambiguous",
                  "failed"
                ]
              },
              "person_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "person": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "person_id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "current_title": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_company_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_company_name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_company_size_band": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_employment_source_claim": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "import"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "unverified"
                                ]
                              },
                              "reference_id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "source",
                              "status",
                              "reference_id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_title_source_claim": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "import"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "unverified"
                                ]
                              },
                              "reference_id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "source",
                              "status",
                              "reference_id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "location": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "country_code": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "about_summary": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_profile_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "profile_image_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_email": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_email_status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "unverified",
                              "verified",
                              "bounced",
                              "invalid",
                              "opted_out",
                              "stale",
                              "do_not_contact"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_email_source": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "manual",
                              "inbound_email",
                              "gmail_sync",
                              "provider",
                              "research_note",
                              "linkedin_profile",
                              "import"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_phone": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_phone_status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "unverified",
                              "verified",
                              "bounced",
                              "invalid",
                              "opted_out",
                              "stale",
                              "do_not_contact"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_phone_source": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "manual",
                              "inbound_email",
                              "gmail_sync",
                              "provider",
                              "research_note",
                              "linkedin_profile",
                              "import"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "recent_match_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "recent_matches_truncated": {
                        "type": "boolean"
                      },
                      "latest_surfaced_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updated_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "last_observed_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "completeness": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "rich",
                              "partial",
                              "skeleton",
                              "needs_refresh"
                            ]
                          },
                          "missing_fields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "present_fields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "priority_missing_fields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "status",
                          "missing_fields",
                          "present_fields",
                          "priority_missing_fields"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "person_id",
                      "name",
                      "current_title",
                      "current_company_id",
                      "current_company_name",
                      "current_company_size_band",
                      "current_employment_source_claim",
                      "current_title_source_claim",
                      "location",
                      "country_code",
                      "about_summary",
                      "source_profile_url",
                      "profile_image_url",
                      "primary_email",
                      "primary_email_status",
                      "primary_email_source",
                      "primary_phone",
                      "primary_phone_status",
                      "primary_phone_source",
                      "recent_match_count",
                      "recent_matches_truncated",
                      "latest_surfaced_at",
                      "updated_at",
                      "last_observed_at",
                      "completeness"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "search_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "search": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "search_id": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "target_mode": {
                        "type": "string",
                        "enum": [
                          "people_and_companies",
                          "people",
                          "companies"
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "pending",
                          "running",
                          "idle",
                          "paused",
                          "reconciling",
                          "complete",
                          "failed"
                        ]
                      },
                      "created_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "completed_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "search_id",
                      "label",
                      "target_mode",
                      "status",
                      "created_at",
                      "completed_at"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "candidate_people": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "person_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "current_title": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "current_company_id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "current_company_name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "current_company_size_band": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "current_employment_source_claim": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "source": {
                              "type": "string",
                              "enum": [
                                "import"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "unverified"
                              ]
                            },
                            "reference_id": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "source",
                            "status",
                            "reference_id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "current_title_source_claim": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "source": {
                              "type": "string",
                              "enum": [
                                "import"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "unverified"
                              ]
                            },
                            "reference_id": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "source",
                            "status",
                            "reference_id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "location": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "country_code": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "about_summary": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "source_profile_url": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "profile_image_url": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "primary_email": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "primary_email_status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "unverified",
                            "verified",
                            "bounced",
                            "invalid",
                            "opted_out",
                            "stale",
                            "do_not_contact"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "primary_email_source": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "manual",
                            "inbound_email",
                            "gmail_sync",
                            "provider",
                            "research_note",
                            "linkedin_profile",
                            "import"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "primary_phone": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "primary_phone_status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "unverified",
                            "verified",
                            "bounced",
                            "invalid",
                            "opted_out",
                            "stale",
                            "do_not_contact"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "primary_phone_source": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "manual",
                            "inbound_email",
                            "gmail_sync",
                            "provider",
                            "research_note",
                            "linkedin_profile",
                            "import"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "recent_match_count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "recent_matches_truncated": {
                      "type": "boolean"
                    },
                    "latest_surfaced_at": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updated_at": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "last_observed_at": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "completeness": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "rich",
                            "partial",
                            "skeleton",
                            "needs_refresh"
                          ]
                        },
                        "missing_fields": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "present_fields": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "priority_missing_fields": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "status",
                        "missing_fields",
                        "present_fields",
                        "priority_missing_fields"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "person_id",
                    "name",
                    "current_title",
                    "current_company_id",
                    "current_company_name",
                    "current_company_size_band",
                    "current_employment_source_claim",
                    "current_title_source_claim",
                    "location",
                    "country_code",
                    "about_summary",
                    "source_profile_url",
                    "profile_image_url",
                    "primary_email",
                    "primary_email_status",
                    "primary_email_source",
                    "primary_phone",
                    "primary_phone_status",
                    "primary_phone_source",
                    "recent_match_count",
                    "recent_matches_truncated",
                    "latest_surfaced_at",
                    "updated_at",
                    "last_observed_at",
                    "completeness"
                  ],
                  "additionalProperties": false
                }
              },
              "error": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_by_operator_user_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "resolved_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "mention_id",
              "opportunity_id",
              "note_id",
              "mention_text",
              "title_hint",
              "status",
              "person_id",
              "person",
              "search_id",
              "search",
              "candidate_people",
              "error",
              "created_by_operator_user_id",
              "created_at",
              "updated_at",
              "resolved_at"
            ],
            "additionalProperties": false
          }
        },
        "coverage": {
          "type": "object",
          "properties": {
            "missing_primary_buyer": {
              "type": "boolean"
            },
            "missing_champion": {
              "type": "boolean"
            },
            "missing_open_requirement": {
              "type": "boolean"
            },
            "missing_next_action": {
              "type": "boolean"
            },
            "stale": {
              "type": "boolean"
            },
            "no_recent_update": {
              "type": "boolean"
            },
            "blocked_requirement_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "overdue_task_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "open_task_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "open_requirement_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "task_counts_truncated": {
              "type": "boolean"
            }
          },
          "required": [
            "missing_primary_buyer",
            "missing_champion",
            "missing_open_requirement",
            "missing_next_action",
            "stale",
            "no_recent_update",
            "blocked_requirement_count",
            "overdue_task_count",
            "open_task_count",
            "open_requirement_count",
            "task_counts_truncated"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "opportunity",
        "company",
        "participants",
        "participants_truncated",
        "requirements",
        "tasks",
        "notes",
        "activities",
        "attached_searches",
        "related_campaigns",
        "signals",
        "person_mentions",
        "coverage"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "opportunity"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_opportunity_signals

Return bounded reviewable signals for opportunity workflows.

opportunities / read-only

Input schema
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "target_type": {
      "type": "string",
      "enum": [
        "company",
        "person",
        "opportunity"
      ]
    },
    "target_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "state": {
      "type": "string",
      "enum": [
        "new",
        "dismissed",
        "attached",
        "promoted_to_note",
        "promoted_to_task",
        "promoted_to_requirement"
      ]
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "signals": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "signal_id": {
            "type": "string"
          },
          "target_type": {
            "type": "string",
            "enum": [
              "company",
              "person",
              "opportunity"
            ]
          },
          "target_id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "company_news",
              "hiring_change",
              "funding_or_finance",
              "leadership_change",
              "product_change",
              "technology_signal",
              "procurement_signal",
              "stale_opportunity",
              "missing_next_action",
              "missing_stakeholder",
              "requirement_risk",
              "other"
            ]
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "evidence_urls": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^https?:\\/\\/"
            }
          },
          "source_search_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_run_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "confidence": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ]
          },
          "observed_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "created_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "review_state": {
            "type": "string",
            "enum": [
              "new",
              "dismissed",
              "attached",
              "promoted_to_note",
              "promoted_to_task",
              "promoted_to_requirement"
            ]
          },
          "reviewed_by_operator_user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "reviewed_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "opportunity_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "signal_id",
          "target_type",
          "target_id",
          "kind",
          "title",
          "summary",
          "evidence_urls",
          "source_search_id",
          "source_run_id",
          "confidence",
          "observed_at",
          "created_at",
          "review_state",
          "reviewed_by_operator_user_id",
          "reviewed_at",
          "opportunity_id"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "signals"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_opportunity_notes

Return bounded append-only context notes, newest first.

opportunities / read-only

Input schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "opportunity_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "note_id": {
            "type": "string"
          },
          "entity_type": {
            "type": "string",
            "enum": [
              "company",
              "person",
              "opportunity"
            ]
          },
          "entity_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "body_markdown": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "source_urls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "related_note_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "created_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "updated_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "note_id",
          "entity_type",
          "entity_id",
          "title",
          "body_markdown",
          "tags",
          "source_urls",
          "related_note_ids",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "truncated": {
      "type": "boolean"
    }
  },
  "required": [
    "items",
    "truncated"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

create_opportunity

Create an opportunity linked to an existing company, with optional source records, pre-sale spend estimate, and initial note. Record next steps afterwards with upsert_opportunity_task.

opportunities

Input schema
{
  "type": "object",
  "properties": {
    "company_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "name": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "summary": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "stage": {
      "type": "string",
      "enum": [
        "qualification",
        "scoping",
        "contracting"
      ]
    },
    "priority": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "urgent"
      ]
    },
    "health": {
      "type": "string",
      "enum": [
        "on_track",
        "needs_attention",
        "blocked",
        "stale",
        "unknown"
      ]
    },
    "owner_operator_user_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "primary_contact_person_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "source_type": {
      "type": "string",
      "enum": [
        "manual",
        "search",
        "research_objective",
        "campaign",
        "signal",
        "referral"
      ]
    },
    "source_search_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1
      }
    },
    "estimated_spend": {
      "type": "object",
      "properties": {
        "min": {
          "type": "number",
          "minimum": 0
        },
        "max": {
          "type": "number",
          "minimum": 0
        },
        "currency": {
          "type": "string",
          "enum": [
            "USD"
          ]
        },
        "period": {
          "type": "string",
          "enum": [
            "one_time",
            "monthly",
            "annual"
          ]
        },
        "confidence": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "basis": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        "source_note_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          }
        }
      },
      "required": [
        "confidence",
        "basis"
      ],
      "additionalProperties": false,
      "description": "Pre-sale estimate of what the deal is worth, with its basis. Not the sold amount: that is booked_value."
    },
    "target_close_date": {
      "type": "integer",
      "minimum": 946684800000,
      "maximum": 8640000000000000,
      "description": "Unix timestamp in milliseconds, for business dates from 2000 onward. Seconds and epoch sentinels are rejected."
    },
    "initial_note": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1,
          "maxLength": 160
        },
        "body_markdown": {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1,
          "maxLength": 65536
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "maxItems": 20
        },
        "source_urls": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$"
          },
          "maxItems": 20
        },
        "related_note_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "maxItems": 20
        }
      },
      "required": [
        "title",
        "body_markdown"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "company_id",
    "name"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "opportunity": {
      "type": "object",
      "properties": {
        "opportunity_id": {
          "type": "string"
        },
        "company_id": {
          "type": "string"
        },
        "organization_doc_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "summary": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "stage": {
          "type": "string",
          "enum": [
            "qualification",
            "scoping",
            "contracting"
          ]
        },
        "outcome": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "sold",
                "lost"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "completion_stage": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "qualification",
                "scoping",
                "contracting"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "loss_reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "active_engagement_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "priority": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high",
            "urgent"
          ]
        },
        "health": {
          "type": "string",
          "enum": [
            "on_track",
            "needs_attention",
            "blocked",
            "stale",
            "unknown"
          ]
        },
        "owner_operator_user_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_contact_person_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_type": {
          "type": "string",
          "enum": [
            "manual",
            "search",
            "research_objective",
            "campaign",
            "signal",
            "referral"
          ]
        },
        "source_search_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "estimated_spend": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "min": {
                  "type": "number",
                  "minimum": 0
                },
                "max": {
                  "type": "number",
                  "minimum": 0
                },
                "currency": {
                  "type": "string",
                  "enum": [
                    "USD"
                  ]
                },
                "period": {
                  "type": "string",
                  "enum": [
                    "one_time",
                    "monthly",
                    "annual"
                  ]
                },
                "confidence": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high"
                  ]
                },
                "basis": {
                  "type": "string"
                },
                "source_note_ids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "currency",
                "confidence",
                "basis",
                "source_note_ids"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "booked_value": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "target_close_date": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "next_action": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "next_action_due_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "created_by_operator_user_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "updated_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "closed_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "archived_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "opportunity_id",
        "company_id",
        "organization_doc_id",
        "name",
        "summary",
        "stage",
        "outcome",
        "completion_stage",
        "loss_reason",
        "active_engagement_id",
        "priority",
        "health",
        "owner_operator_user_id",
        "primary_contact_person_id",
        "source_type",
        "source_search_ids",
        "estimated_spend",
        "booked_value",
        "target_close_date",
        "next_action",
        "next_action_due_at",
        "created_by_operator_user_id",
        "created_at",
        "updated_at",
        "closed_at",
        "archived_at"
      ],
      "additionalProperties": false
    },
    "receipts": {
      "type": "object",
      "properties": {
        "created": {
          "type": "boolean"
        },
        "note_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "requirement_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "task_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "created",
        "note_id",
        "requirement_ids",
        "task_ids"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "opportunity",
    "receipts"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

update_opportunity

Patch core opportunity fields. Use move_opportunity_stage for stage transitions and complete_opportunity to record Sold or Lost. booked_value corrects a Sold deal's signed amount; estimated_spend is the pre-sale estimate. Next steps are tasks (upsert_opportunity_task), not a typed next action.

opportunities

Input schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "name": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "summary": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    },
    "priority": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "urgent"
      ]
    },
    "health": {
      "type": "string",
      "enum": [
        "on_track",
        "needs_attention",
        "blocked",
        "stale",
        "unknown"
      ]
    },
    "owner_operator_user_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    },
    "primary_contact_person_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    },
    "source_search_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1
      }
    },
    "estimated_spend": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "min": {
              "type": "number",
              "minimum": 0
            },
            "max": {
              "type": "number",
              "minimum": 0
            },
            "currency": {
              "type": "string",
              "enum": [
                "USD"
              ]
            },
            "period": {
              "type": "string",
              "enum": [
                "one_time",
                "monthly",
                "annual"
              ]
            },
            "confidence": {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high"
              ]
            },
            "basis": {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1
            },
            "source_note_ids": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
                "minLength": 1
              }
            }
          },
          "required": [
            "confidence",
            "basis"
          ],
          "additionalProperties": false,
          "description": "Pre-sale estimate of what the deal is worth, with its basis. Not the sold amount: that is booked_value."
        },
        {
          "type": "null"
        }
      ]
    },
    "booked_value": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0,
          "description": "Signed contract amount in USD, recorded when the deal is Sold. Analytics and the engagement's value read it."
        },
        {
          "type": "null"
        }
      ]
    },
    "target_close_date": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 946684800000,
          "maximum": 8640000000000000,
          "description": "Unix timestamp in milliseconds, for business dates from 2000 onward. Seconds and epoch sentinels are rejected."
        },
        {
          "type": "null"
        }
      ]
    },
    "next_action": {
      "type": "null",
      "description": "Only null, to clear a legacy typed next action. Record next steps as tasks; the earliest-due open task is the next action."
    },
    "next_action_due_at": {
      "type": "null",
      "description": "Only null, to clear a legacy typed next action. Record next steps as tasks; the earliest-due open task is the next action."
    }
  },
  "required": [
    "opportunity_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string"
    },
    "updated": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "opportunity_id",
    "updated"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

move_opportunity_stage

Move an open opportunity between Qualification, Scoping, and Contracting. Returns the saved stage.

opportunities

Input schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "stage": {
      "type": "string",
      "enum": [
        "qualification",
        "scoping",
        "contracting"
      ]
    },
    "note": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "opportunity_id",
    "stage"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string"
    },
    "stage": {
      "type": "string",
      "enum": [
        "qualification",
        "scoping",
        "contracting"
      ]
    },
    "previous_updated_at": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "updated_at": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "opportunity_id",
    "stage",
    "previous_updated_at",
    "updated_at"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

archive_opportunity

Remove an opportunity from the active pipeline without recording a sold or lost outcome. The row stays readable on its detail page.

opportunities

Input schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "note": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "opportunity_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string"
    },
    "stage": {
      "type": "string",
      "enum": [
        "qualification",
        "scoping",
        "contracting"
      ]
    },
    "archived_at": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "previous_updated_at": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "updated_at": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "opportunity_id",
    "stage",
    "archived_at",
    "previous_updated_at",
    "updated_at"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

complete_opportunity

Complete an opportunity as Sold or Lost. Sold requires booked_value, the signed contract amount, and creates or links one active engagement that reads its value from the opportunity. Lost requires loss_reason.

opportunities

Input schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "outcome": {
      "type": "string",
      "enum": [
        "sold",
        "lost"
      ]
    },
    "booked_value": {
      "type": "number",
      "minimum": 0,
      "description": "Required for Sold: the signed contract amount in USD. Ask the user when it is unknown; do not copy the estimate. Omit for Lost."
    },
    "loss_reason": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "note": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "opportunity_id",
    "outcome"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string"
    },
    "outcome": {
      "type": "string",
      "enum": [
        "sold",
        "lost"
      ]
    },
    "completion_stage": {
      "type": "string",
      "enum": [
        "qualification",
        "scoping",
        "contracting"
      ]
    },
    "loss_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "active_engagement_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "booked_value": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "previous_updated_at": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "updated_at": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "opportunity_id",
    "outcome",
    "completion_stage",
    "loss_reason",
    "active_engagement_id",
    "booked_value",
    "previous_updated_at",
    "updated_at"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

add_opportunity_context

Append opportunity context: a note, the pre-sale spend estimate, requirements (conditions or blockers), tasks (to-dos; the earliest-due open one is the next action), or people. Returns the canonical saved note, if any.

opportunities

Input schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "note": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "maxLength": 160
        },
        "body_markdown": {
          "type": "string",
          "maxLength": 65536
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "maxItems": 20
        },
        "source_urls": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https?:\\/\\/"
          },
          "maxItems": 20
        },
        "related_note_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "maxItems": 20
        }
      },
      "required": [
        "title",
        "body_markdown"
      ],
      "additionalProperties": false
    },
    "estimated_spend": {
      "type": "object",
      "properties": {
        "min": {
          "type": "number",
          "minimum": 0
        },
        "max": {
          "type": "number",
          "minimum": 0
        },
        "currency": {
          "type": "string",
          "enum": [
            "USD"
          ]
        },
        "period": {
          "type": "string",
          "enum": [
            "one_time",
            "monthly",
            "annual"
          ]
        },
        "confidence": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "basis": {
          "type": "string"
        },
        "source_note_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "maxItems": 20
        }
      },
      "required": [
        "confidence",
        "basis"
      ],
      "additionalProperties": false,
      "description": "Pre-sale estimate of the deal's worth with its basis; not the sold amount (booked_value)."
    },
    "requirements": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "technical",
              "security",
              "legal",
              "procurement",
              "commercial",
              "staffing",
              "implementation",
              "data",
              "success_criteria",
              "other"
            ]
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "in_progress",
              "blocked",
              "satisfied",
              "dismissed"
            ]
          },
          "priority": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high",
              "urgent"
            ]
          },
          "owner_operator_user_id": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "due_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "source_note_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1
            },
            "maxItems": 20
          }
        },
        "required": [
          "category",
          "title"
        ],
        "additionalProperties": false
      },
      "maxItems": 20,
      "description": "Conditions that must hold or are blocking (access, legal, funding, data), not to-dos. Status blocked marks a blocker."
    },
    "tasks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "in_progress",
              "blocked",
              "completed",
              "dismissed"
            ]
          },
          "assignee_operator_user_id": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "due_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "title"
        ],
        "additionalProperties": false
      },
      "maxItems": 20,
      "description": "To-dos: who does what by when. The earliest-due open task is the next action."
    },
    "people": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "person_id": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1
          },
          "role": {
            "type": "string",
            "enum": [
              "primary_buyer",
              "economic_buyer",
              "champion",
              "technical_evaluator",
              "security",
              "legal",
              "procurement",
              "blocker",
              "advisor",
              "stakeholder",
              "unknown",
              "owner",
              "supporting_operator",
              "technical_owner",
              "delivery_owner",
              "executive_sponsor"
            ]
          },
          "relationship_status": {
            "type": "string",
            "enum": [
              "unknown",
              "active",
              "supportive",
              "neutral",
              "blocked"
            ]
          },
          "notes": {
            "type": "string"
          },
          "is_primary": {
            "type": "boolean"
          }
        },
        "required": [
          "person_id",
          "role"
        ],
        "additionalProperties": false
      },
      "maxItems": 20
    }
  },
  "required": [
    "opportunity_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string"
    },
    "receipt": {
      "type": "object",
      "properties": {
        "note_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "requirement_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "task_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "participant_person_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "updated_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "note_id",
        "requirement_ids",
        "task_ids",
        "participant_person_ids",
        "updated_fields"
      ],
      "additionalProperties": false
    },
    "note": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "note_id": {
              "type": "string"
            },
            "entity_type": {
              "type": "string",
              "enum": [
                "company",
                "person",
                "opportunity"
              ]
            },
            "entity_id": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "body_markdown": {
              "type": "string"
            },
            "tags": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "source_urls": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "related_note_ids": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "created_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "updated_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "note_id",
            "entity_type",
            "entity_id",
            "title",
            "body_markdown",
            "tags",
            "source_urls",
            "related_note_ids",
            "created_at",
            "updated_at"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "opportunity_id",
    "receipt",
    "note"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_opportunity_tasks

Return a bounded page of tasks, the opportunity's to-do list, optionally filtered by status. The earliest-due open task is its next action.

opportunities / read-only

Input schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "in_progress",
        "blocked",
        "completed",
        "dismissed"
      ]
    }
  },
  "required": [
    "opportunity_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "task_id": {
            "type": "string"
          },
          "opportunity_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "in_progress",
              "blocked",
              "completed",
              "dismissed"
            ]
          },
          "assignee_operator_user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "due_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "created_by_operator_user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_requirement_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_signal_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "updated_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "task_id",
          "opportunity_id",
          "title",
          "description",
          "status",
          "assignee_operator_user_id",
          "due_at",
          "completed_at",
          "created_by_operator_user_id",
          "source_requirement_id",
          "source_signal_id",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "continue_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "has_more": {
      "type": "boolean"
    },
    "truncated": {
      "type": "boolean"
    }
  },
  "required": [
    "items",
    "continue_cursor",
    "has_more",
    "truncated"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

upsert_opportunity_task

Create or update a task: a to-do with an optional due date. Record every next step this way; the earliest-due open task is the opportunity's next action. Omit task_id to create; pass the exact saved task_id to update. Returns the canonical saved task, including task_id, title, description, status and due_at; report saved values from it.

opportunities

Input schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "task_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "title": {
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "in_progress",
        "blocked",
        "completed",
        "dismissed"
      ]
    },
    "assignee_operator_user_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    },
    "due_at": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "source_requirement_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    },
    "source_signal_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "opportunity_id",
    "title"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "task": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string"
        },
        "opportunity_id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "open",
            "in_progress",
            "blocked",
            "completed",
            "dismissed"
          ]
        },
        "assignee_operator_user_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "due_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "created_by_operator_user_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_requirement_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_signal_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "updated_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "task_id",
        "opportunity_id",
        "title",
        "description",
        "status",
        "assignee_operator_user_id",
        "due_at",
        "completed_at",
        "created_by_operator_user_id",
        "source_requirement_id",
        "source_signal_id",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "task"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

complete_opportunity_task

Complete an opportunity task with an optional completion note. Returns the canonical saved task.

opportunities

Input schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "task_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "note": {
      "type": "string"
    }
  },
  "required": [
    "opportunity_id",
    "task_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string"
    },
    "task_id": {
      "type": "string"
    },
    "note_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "task": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string"
        },
        "opportunity_id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "open",
            "in_progress",
            "blocked",
            "completed",
            "dismissed"
          ]
        },
        "assignee_operator_user_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "due_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "created_by_operator_user_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_requirement_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_signal_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "updated_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "task_id",
        "opportunity_id",
        "title",
        "description",
        "status",
        "assignee_operator_user_id",
        "due_at",
        "completed_at",
        "created_by_operator_user_id",
        "source_requirement_id",
        "source_signal_id",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "opportunity_id",
    "task_id",
    "note_id",
    "task"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_active_engagement_deliverables

Return a bounded page of deliverables, what is owed to the client with dates, in stable creation order.

opportunities / read-only

Input schema
{
  "type": "object",
  "properties": {
    "engagement_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "cursor": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "engagement_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "deliverable_id": {
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 8192
              },
              {
                "type": "null"
              }
            ]
          },
          "workstream": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ]
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "end_date": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "planned",
              "in_progress",
              "delivered"
            ]
          },
          "delivered_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "created_by_operator_user_id": {
            "type": "string"
          },
          "updated_by_operator_user_id": {
            "type": "string"
          },
          "delivered_by_operator_user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "updated_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "deliverable_id",
          "engagement_id",
          "title",
          "description",
          "workstream",
          "start_date",
          "end_date",
          "status",
          "delivered_at",
          "created_by_operator_user_id",
          "updated_by_operator_user_id",
          "delivered_by_operator_user_id",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "continue_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "has_more": {
      "type": "boolean"
    },
    "truncated": {
      "type": "boolean"
    }
  },
  "required": [
    "items",
    "continue_cursor",
    "has_more",
    "truncated"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

upsert_active_engagement_deliverable

Create or edit a planned or in-progress deliverable: something owed to the client, with a date. Internal to-dos are opportunity tasks instead.

opportunities

Input schema
{
  "type": "object",
  "properties": {
    "engagement_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "deliverable_id": {
      "type": "string",
      "minLength": 1
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 240
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 8192
        },
        {
          "type": "null"
        }
      ]
    },
    "workstream": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ]
    },
    "start_date": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$"
        },
        {
          "type": "null"
        }
      ]
    },
    "end_date": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "planned",
        "in_progress"
      ]
    }
  },
  "required": [
    "engagement_id",
    "title"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "deliverable": {
      "type": "object",
      "properties": {
        "deliverable_id": {
          "type": "string"
        },
        "engagement_id": {
          "type": "string"
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "description": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 8192
            },
            {
              "type": "null"
            }
          ]
        },
        "workstream": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 120
            },
            {
              "type": "null"
            }
          ]
        },
        "start_date": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$"
            },
            {
              "type": "null"
            }
          ]
        },
        "end_date": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "planned",
            "in_progress",
            "delivered"
          ]
        },
        "delivered_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "created_by_operator_user_id": {
          "type": "string"
        },
        "updated_by_operator_user_id": {
          "type": "string"
        },
        "delivered_by_operator_user_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "updated_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "deliverable_id",
        "engagement_id",
        "title",
        "description",
        "workstream",
        "start_date",
        "end_date",
        "status",
        "delivered_at",
        "created_by_operator_user_id",
        "updated_by_operator_user_id",
        "delivered_by_operator_user_id",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    },
    "receipt": {
      "type": "object",
      "properties": {
        "engagement_id": {
          "type": "string"
        },
        "deliverable_id": {
          "type": "string"
        },
        "created": {
          "type": "boolean"
        },
        "idempotent": {
          "type": "boolean"
        }
      },
      "required": [
        "engagement_id",
        "deliverable_id",
        "created",
        "idempotent"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "deliverable",
    "receipt"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

mark_active_engagement_deliverable_delivered

Idempotently enter the terminal Delivered lifecycle state.

opportunities

Input schema
{
  "type": "object",
  "properties": {
    "engagement_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "deliverable_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "engagement_id",
    "deliverable_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "deliverable": {
      "type": "object",
      "properties": {
        "deliverable_id": {
          "type": "string"
        },
        "engagement_id": {
          "type": "string"
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "description": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 8192
            },
            {
              "type": "null"
            }
          ]
        },
        "workstream": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 120
            },
            {
              "type": "null"
            }
          ]
        },
        "start_date": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$"
            },
            {
              "type": "null"
            }
          ]
        },
        "end_date": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "planned",
            "in_progress",
            "delivered"
          ]
        },
        "delivered_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "created_by_operator_user_id": {
          "type": "string"
        },
        "updated_by_operator_user_id": {
          "type": "string"
        },
        "delivered_by_operator_user_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "updated_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "deliverable_id",
        "engagement_id",
        "title",
        "description",
        "workstream",
        "start_date",
        "end_date",
        "status",
        "delivered_at",
        "created_by_operator_user_id",
        "updated_by_operator_user_id",
        "delivered_by_operator_user_id",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    },
    "receipt": {
      "type": "object",
      "properties": {
        "engagement_id": {
          "type": "string"
        },
        "deliverable_id": {
          "type": "string"
        },
        "created": {
          "type": "boolean"
        },
        "idempotent": {
          "type": "boolean"
        }
      },
      "required": [
        "engagement_id",
        "deliverable_id",
        "created",
        "idempotent"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "deliverable",
    "receipt"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

scope_opportunity

Return deterministic guidance for missing roles, requirements, risks, spend basis, and next actions.

opportunities / read-only

Input schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "opportunity_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string"
    },
    "required_roles": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "primary_buyer",
          "economic_buyer",
          "champion",
          "technical_evaluator",
          "security",
          "legal",
          "procurement",
          "blocker",
          "advisor",
          "stakeholder",
          "unknown",
          "owner",
          "supporting_operator",
          "technical_owner",
          "delivery_owner",
          "executive_sponsor"
        ]
      }
    },
    "required_needs": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "technical",
          "security",
          "legal",
          "procurement",
          "commercial",
          "staffing",
          "implementation",
          "data",
          "success_criteria",
          "other"
        ]
      }
    },
    "risks": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "missing_information": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "spend_basis": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "suggested_next_actions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "coverage": {
      "type": "object",
      "properties": {
        "missing_primary_buyer": {
          "type": "boolean"
        },
        "missing_champion": {
          "type": "boolean"
        },
        "missing_open_requirement": {
          "type": "boolean"
        },
        "missing_next_action": {
          "type": "boolean"
        },
        "stale": {
          "type": "boolean"
        },
        "no_recent_update": {
          "type": "boolean"
        },
        "blocked_requirement_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "overdue_task_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "open_task_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "open_requirement_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "task_counts_truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "missing_primary_buyer",
        "missing_champion",
        "missing_open_requirement",
        "missing_next_action",
        "stale",
        "no_recent_update",
        "blocked_requirement_count",
        "overdue_task_count",
        "open_task_count",
        "open_requirement_count",
        "task_counts_truncated"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "opportunity_id",
    "required_roles",
    "required_needs",
    "risks",
    "missing_information",
    "spend_basis",
    "suggested_next_actions",
    "coverage"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_opportunity_activity

Page one opportunity's activity, newest first, filtered server-side by types, created_since (inclusive) and created_until (exclusive), in epoch ms. limit (1-100, default 100) bounds rows read per page, so a filtered page can be short or empty before is_done; pass continue_cursor as cursor with unchanged filters. Rows carry activity_id, type, summary, actor_operator_user_id and created_at; include adds more. Request every type you need in one call and reduce rows in the script (counts by type or actor, the event at a time). No writes.

opportunities / read-only

Input schema
{
  "type": "object",
  "properties": {
    "opportunity_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "created",
          "stage_changed",
          "status_changed",
          "outcome_changed",
          "archived",
          "loss_reason_updated",
          "booked_value_changed",
          "owner_changed",
          "attribution_assigned",
          "attribution_replaced",
          "attribution_cleared",
          "participant_added",
          "participant_updated",
          "note_created",
          "requirement_created",
          "requirement_updated",
          "task_created",
          "task_updated",
          "task_completed",
          "search_attached",
          "objective_attached",
          "signal_observed",
          "signal_promoted",
          "signal_dismissed",
          "mcp_write"
        ]
      },
      "minItems": 1
    },
    "created_since": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "created_until": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "include": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "opportunity_id",
          "source",
          "related_entity_type",
          "related_entity_id",
          "payload"
        ]
      },
      "minItems": 1,
      "description": "Optional fields to add; every other field is always returned."
    }
  },
  "required": [
    "opportunity_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "activity": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "activity_id": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "created",
              "stage_changed",
              "status_changed",
              "outcome_changed",
              "archived",
              "loss_reason_updated",
              "booked_value_changed",
              "owner_changed",
              "attribution_assigned",
              "attribution_replaced",
              "attribution_cleared",
              "participant_added",
              "participant_updated",
              "note_created",
              "requirement_created",
              "requirement_updated",
              "task_created",
              "task_updated",
              "task_completed",
              "search_attached",
              "objective_attached",
              "signal_observed",
              "signal_promoted",
              "signal_dismissed",
              "mcp_write"
            ]
          },
          "summary": {
            "type": "string"
          },
          "actor_operator_user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "opportunity_id": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "related_entity_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "related_entity_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "payload": {}
        },
        "required": [
          "activity_id",
          "type",
          "summary",
          "actor_operator_user_id",
          "created_at"
        ],
        "additionalProperties": false
      }
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "activity",
    "is_done",
    "continue_cursor"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

prepare_campaign_audience

Start or resume an idempotent reviewed audience from ALL saved people at current employers with a company tag. Choose any (no email required, including LinkedIn-only people), selectable email (verified/unverified/stale, no deliverability promise), or verified-only. Email sending eligibility is checked separately. Target an existing targeted campaign or supply a new campaign name/prompt. No campaign or membership writes occur before explicit apply. Call advance_campaign_audience until ready, review counts and list_campaign_audience_items, then apply the exact review token. After reviewed apply, enrollment automatically creates drafts using saved campaign settings; generated campaigns may incur model costs. No messages are sent.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "idempotency_key": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "company_tag_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "email_policy": {
      "type": "string",
      "enum": [
        "any",
        "selectable",
        "verified"
      ]
    },
    "target": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "campaign_id": {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "required": [
            "campaign_id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 200
            },
            "generation_prompt": {
              "type": "string",
              "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
              "minLength": 1,
              "maxLength": 10000
            }
          },
          "required": [
            "name",
            "generation_prompt"
          ],
          "additionalProperties": false
        }
      ]
    }
  },
  "required": [
    "idempotency_key",
    "company_tag_id",
    "email_policy",
    "target"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string"
    },
    "phase": {
      "type": "string",
      "enum": [
        "enumerating",
        "ready",
        "applying",
        "reconciling",
        "complete",
        "stale"
      ]
    },
    "review_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "tag_id": {
      "type": "string"
    },
    "email_policy": {
      "type": "string",
      "enum": [
        "any",
        "selectable",
        "verified"
      ]
    },
    "cutoff": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "scanned": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "matching": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "already_active": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "to_add": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "to_restore": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "excluded": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "processed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "added": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "restored": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "kept": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "failed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "reconciled": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "reconciliation_failed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "index_entries_removed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "complete_audience": {
      "type": "boolean"
    },
    "policy": {
      "type": "string"
    }
  },
  "required": [
    "operation_id",
    "phase",
    "review_token",
    "campaign_id",
    "tag_id",
    "email_policy",
    "cutoff",
    "expires_at",
    "scanned",
    "matching",
    "already_active",
    "to_add",
    "to_restore",
    "excluded",
    "processed",
    "added",
    "restored",
    "kept",
    "failed",
    "reconciled",
    "reconciliation_failed",
    "index_entries_removed",
    "error",
    "complete_audience",
    "policy"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

advance_campaign_audience

Advance exactly one durable bounded page or batch. Before reviewed apply this only prepares the manifest; afterward it enrolls reviewed people and reconciles persisted membership. Retry safely after interruption. Stop on ready for explicit human review, complete for receipts, or stale for a new review. Existing active members stay active; previewed removed members are restored. Enrollment automatically creates drafts using saved campaign settings; generated campaigns may incur model costs. No messages are sent.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "operation_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string"
    },
    "phase": {
      "type": "string",
      "enum": [
        "enumerating",
        "ready",
        "applying",
        "reconciling",
        "complete",
        "stale"
      ]
    },
    "review_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "tag_id": {
      "type": "string"
    },
    "email_policy": {
      "type": "string",
      "enum": [
        "any",
        "selectable",
        "verified"
      ]
    },
    "cutoff": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "scanned": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "matching": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "already_active": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "to_add": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "to_restore": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "excluded": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "processed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "added": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "restored": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "kept": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "failed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "reconciled": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "reconciliation_failed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "index_entries_removed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "complete_audience": {
      "type": "boolean"
    },
    "policy": {
      "type": "string"
    }
  },
  "required": [
    "operation_id",
    "phase",
    "review_token",
    "campaign_id",
    "tag_id",
    "email_policy",
    "cutoff",
    "expires_at",
    "scanned",
    "matching",
    "already_active",
    "to_add",
    "to_restore",
    "excluded",
    "processed",
    "added",
    "restored",
    "kept",
    "failed",
    "reconciled",
    "reconciliation_failed",
    "index_entries_removed",
    "error",
    "complete_audience",
    "policy"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

apply_campaign_audience

Authorize the exact complete reviewed manifest using its review token and APPLY_REVIEWED_AUDIENCE confirmation. Creates a campaign at most once, if requested, and enables bounded enrollment through advance_campaign_audience. Requires review of complete counts, existing/removed membership behavior and preview. Source or target drift requires re-review; never silently expands the cohort. Enrollment automatically creates drafts using saved campaign settings; generated campaigns may incur model costs. No messages are sent.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "review_token": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "confirmation": {
      "type": "string",
      "enum": [
        "APPLY_REVIEWED_AUDIENCE"
      ]
    }
  },
  "required": [
    "operation_id",
    "review_token",
    "confirmation"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string"
    },
    "phase": {
      "type": "string",
      "enum": [
        "enumerating",
        "ready",
        "applying",
        "reconciling",
        "complete",
        "stale"
      ]
    },
    "review_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "tag_id": {
      "type": "string"
    },
    "email_policy": {
      "type": "string",
      "enum": [
        "any",
        "selectable",
        "verified"
      ]
    },
    "cutoff": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "scanned": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "matching": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "already_active": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "to_add": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "to_restore": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "excluded": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "processed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "added": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "restored": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "kept": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "failed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "reconciled": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "reconciliation_failed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "index_entries_removed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "complete_audience": {
      "type": "boolean"
    },
    "policy": {
      "type": "string"
    }
  },
  "required": [
    "operation_id",
    "phase",
    "review_token",
    "campaign_id",
    "tag_id",
    "email_policy",
    "cutoff",
    "expires_at",
    "scanned",
    "matching",
    "already_active",
    "to_add",
    "to_restore",
    "excluded",
    "processed",
    "added",
    "restored",
    "kept",
    "failed",
    "reconciled",
    "reconciliation_failed",
    "index_entries_removed",
    "error",
    "complete_audience",
    "policy"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

read_campaign_audience

Read the authenticated operator's durable reviewed-audience filters, completeness, cutoff, progress and assignment/reconciliation counts. Stale or partial work is never a complete audience. Read live membership per item through list_campaign_audience_items.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "operation_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string"
    },
    "phase": {
      "type": "string",
      "enum": [
        "enumerating",
        "ready",
        "applying",
        "reconciling",
        "complete",
        "stale"
      ]
    },
    "review_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "tag_id": {
      "type": "string"
    },
    "email_policy": {
      "type": "string",
      "enum": [
        "any",
        "selectable",
        "verified"
      ]
    },
    "cutoff": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "scanned": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "matching": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "already_active": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "to_add": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "to_restore": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "excluded": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "processed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "added": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "restored": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "kept": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "failed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "reconciled": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "reconciliation_failed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "index_entries_removed": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "complete_audience": {
      "type": "boolean"
    },
    "policy": {
      "type": "string"
    }
  },
  "required": [
    "operation_id",
    "phase",
    "review_token",
    "campaign_id",
    "tag_id",
    "email_policy",
    "cutoff",
    "expires_at",
    "scanned",
    "matching",
    "already_active",
    "to_add",
    "to_restore",
    "excluded",
    "processed",
    "added",
    "restored",
    "kept",
    "failed",
    "reconciled",
    "reconciliation_failed",
    "index_entries_removed",
    "error",
    "complete_audience",
    "policy"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_campaign_audience_items

Read a bounded cursor page of the persisted deduplicated audience: saved-person preview, membership before review, per-item assignment outcome/reason, reconciliation and current persisted active membership. Page until is_done for the entire reviewed cohort.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "operation_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "cursor": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string",
          "maxLength": 4000
        }
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 25
    }
  },
  "required": [
    "operation_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "page": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "person_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "company": {
            "type": "string"
          },
          "membership_before": {
            "type": "string",
            "enum": [
              "new",
              "active",
              "removed"
            ]
          },
          "outcome": {
            "type": "string",
            "enum": [
              "pending",
              "added",
              "restored",
              "kept",
              "failed"
            ]
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "reconciled": {
            "type": "boolean"
          },
          "persisted_active": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "person_id",
          "name",
          "email",
          "company",
          "membership_before",
          "outcome",
          "reason",
          "reconciled",
          "persisted_active"
        ],
        "additionalProperties": false
      }
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "type": "string"
    }
  },
  "required": [
    "page",
    "is_done",
    "continue_cursor"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

find_more_people_at_company

Uses paid provider credits. Call it only when the user explicitly asks for provider discovery, a refresh, or a search run, or after your own research could not establish the identity, and never in loops or batches the user did not ask for. On capacity_exhausted, stop calling paid tools, continue with your own research and writes that make no provider calls, and report that the research quota needs restoring. Queue bounded discovery and save current people at an existing company. Poll the returned discovery ID for progress.

people

Input schema
{
  "type": "object",
  "properties": {
    "company_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "company_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "discovery_id": {
      "type": "string"
    },
    "company_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "completed",
        "failed"
      ]
    },
    "stage": {
      "type": "string"
    },
    "role_scope": {
      "type": "string"
    },
    "max_candidates": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "candidate_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "processed_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "new_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "existing_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "unresolved_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "contact_ready_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "person_id": {
            "type": "string"
          },
          "intake_id": {
            "type": "string"
          },
          "disposition": {
            "type": "string",
            "enum": [
              "new",
              "existing",
              "unresolved"
            ]
          },
          "contact_ready": {
            "type": "boolean"
          },
          "gap": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "disposition",
          "contact_ready"
        ],
        "additionalProperties": false
      }
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "requested_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "discovery_id",
    "company_id",
    "status",
    "stage",
    "role_scope",
    "max_candidates",
    "candidate_count",
    "processed_count",
    "new_count",
    "existing_count",
    "unresolved_count",
    "contact_ready_count",
    "results",
    "error",
    "requested_at",
    "completed_at"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_company_people_discovery

Read bounded durable company-scoped discovery progress, people, gaps, and saved-email readiness.

people / read-only

Input schema
{
  "type": "object",
  "properties": {
    "discovery_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "discovery_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "discovery_id": {
      "type": "string"
    },
    "company_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "completed",
        "failed"
      ]
    },
    "stage": {
      "type": "string"
    },
    "role_scope": {
      "type": "string"
    },
    "max_candidates": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "candidate_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "processed_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "new_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "existing_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "unresolved_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "contact_ready_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "person_id": {
            "type": "string"
          },
          "intake_id": {
            "type": "string"
          },
          "disposition": {
            "type": "string",
            "enum": [
              "new",
              "existing",
              "unresolved"
            ]
          },
          "contact_ready": {
            "type": "boolean"
          },
          "gap": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "disposition",
          "contact_ready"
        ],
        "additionalProperties": false
      }
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "requested_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "discovery_id",
    "company_id",
    "status",
    "stage",
    "role_scope",
    "max_candidates",
    "candidate_count",
    "processed_count",
    "new_count",
    "existing_count",
    "unresolved_count",
    "contact_ready_count",
    "results",
    "error",
    "requested_at",
    "completed_at"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

assign_outreach

Assign one eligible campaign person to an admitted operator and reserve an attempt. Sends no messages.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "channel": {
      "type": "string",
      "enum": [
        "email",
        "linkedin"
      ]
    },
    "variation": {
      "type": "string",
      "enum": [
        "manual_email",
        "connection_request",
        "inmail_message"
      ]
    },
    "operator_user_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "person_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "contact_point_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "campaign_id",
    "channel",
    "variation",
    "person_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "assignment": {
      "type": "object",
      "properties": {
        "assignment_id": {
          "type": "string"
        },
        "campaign_id": {
          "type": "string"
        },
        "person_id": {
          "type": "string"
        },
        "contact_point_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "contact_kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "normalized_contact_value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "channel": {
          "type": "string",
          "enum": [
            "email",
            "linkedin"
          ]
        },
        "variation": {
          "type": "string",
          "enum": [
            "manual_email",
            "connection_request",
            "inmail_message"
          ]
        },
        "operator_user_id": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "draft_revision_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "recipient_override_revision_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "outreach_attempt_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "sent_state_version": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "reserved_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "expires_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "created_by_operator_user_id": {
          "type": "string"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        }
      },
      "required": [
        "assignment_id",
        "campaign_id",
        "person_id",
        "contact_point_id",
        "contact_kind",
        "normalized_contact_value",
        "channel",
        "variation",
        "operator_user_id",
        "status",
        "draft_revision_id",
        "recipient_override_revision_id",
        "outreach_attempt_id",
        "sent_state_version",
        "reserved_at",
        "expires_at",
        "created_by_operator_user_id",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    },
    "attempt": {},
    "policy": {}
  },
  "required": [
    "assignment",
    "attempt",
    "policy"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

reassign_outreach

Hand a nonterminal assignment to a verified, admitted operator under the existing ownership rules. Sends no messages.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "assignment_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "operator_user_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "assignment_id",
    "operator_user_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "assignment_id": {
      "type": "string"
    },
    "campaign_id": {
      "type": "string"
    },
    "person_id": {
      "type": "string"
    },
    "contact_point_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "contact_kind": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "normalized_contact_value": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "channel": {
      "type": "string",
      "enum": [
        "email",
        "linkedin"
      ]
    },
    "variation": {
      "type": "string",
      "enum": [
        "manual_email",
        "connection_request",
        "inmail_message"
      ]
    },
    "operator_user_id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "draft_revision_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "recipient_override_revision_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "outreach_attempt_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "sent_state_version": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "reserved_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "created_by_operator_user_id": {
      "type": "string"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    }
  },
  "required": [
    "assignment_id",
    "campaign_id",
    "person_id",
    "contact_point_id",
    "contact_kind",
    "normalized_contact_value",
    "channel",
    "variation",
    "operator_user_id",
    "status",
    "draft_revision_id",
    "recipient_override_revision_id",
    "outreach_attempt_id",
    "sent_state_version",
    "reserved_at",
    "expires_at",
    "created_by_operator_user_id",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

take_outreach

Claim a nonterminal assignment; a colleague's prepared attempt cannot be taken implicitly. Sends no messages.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "assignment_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "assignment_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "assignment_id": {
      "type": "string"
    },
    "campaign_id": {
      "type": "string"
    },
    "person_id": {
      "type": "string"
    },
    "contact_point_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "contact_kind": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "normalized_contact_value": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "channel": {
      "type": "string",
      "enum": [
        "email",
        "linkedin"
      ]
    },
    "variation": {
      "type": "string",
      "enum": [
        "manual_email",
        "connection_request",
        "inmail_message"
      ]
    },
    "operator_user_id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "draft_revision_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "recipient_override_revision_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "outreach_attempt_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "sent_state_version": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "reserved_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "created_by_operator_user_id": {
      "type": "string"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    }
  },
  "required": [
    "assignment_id",
    "campaign_id",
    "person_id",
    "contact_point_id",
    "contact_kind",
    "normalized_contact_value",
    "channel",
    "variation",
    "operator_user_id",
    "status",
    "draft_revision_id",
    "recipient_override_revision_id",
    "outreach_attempt_id",
    "sent_state_version",
    "reserved_at",
    "expires_at",
    "created_by_operator_user_id",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

bulk_assign_outreach

Process at most 10 of up to 500 explicitly selected members per call, with per-person outcomes and a selection-bound continuation cursor. Never reassigns or sends.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "channel": {
      "type": "string",
      "enum": [
        "email",
        "linkedin"
      ]
    },
    "variation": {
      "type": "string",
      "enum": [
        "manual_email",
        "connection_request",
        "inmail_message"
      ]
    },
    "operator_user_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "person_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1,
        "maxLength": 200
      },
      "minItems": 1,
      "maxItems": 500
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    }
  },
  "required": [
    "campaign_id",
    "channel",
    "variation",
    "person_ids"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "person_id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "assigned",
              "unchanged",
              "skipped",
              "failed"
            ]
          },
          "assignment_id": {
            "type": "string"
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                },
                "matching_ids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "matching_ids"
              ],
              "additionalProperties": false
            }
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "person_id",
          "status"
        ],
        "additionalProperties": false
      }
    },
    "selected_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "items",
    "selected_count",
    "is_done",
    "continue_cursor"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

bulk_update_campaign_memberships

Add, remove or restore up to 10 explicitly selected saved people per page. Adding enrolls new people and creates drafts from the saved campaign settings; generated campaigns may incur model costs. Each person commits independently; retry and continue with the same selection. Restoring may requeue generated drafts and incur model costs. Nothing is sent.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "person_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1,
        "maxLength": 200
      },
      "minItems": 1,
      "maxItems": 500
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    },
    "operation": {
      "type": "string",
      "enum": [
        "add",
        "remove",
        "restore"
      ]
    }
  },
  "required": [
    "campaign_id",
    "person_ids",
    "operation"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "selected_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "items": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "person_id": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "added",
                  "removed",
                  "restored"
                ]
              }
            },
            "required": [
              "person_id",
              "status"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "person_id": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "skipped"
                ]
              },
              "reasons": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "person_id",
              "status",
              "reasons"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "person_id": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "failed"
                ]
              },
              "error": {
                "type": "string"
              }
            },
            "required": [
              "person_id",
              "status",
              "error"
            ],
            "additionalProperties": false
          }
        ]
      }
    }
  },
  "required": [
    "selected_count",
    "is_done",
    "continue_cursor",
    "items"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

generate_campaign_drafts

Generate drafts for up to 10 selected campaign people per page, or read current run and revision state without starting generation. Generated campaigns may use a paid model; nothing is sent.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "person_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1,
        "maxLength": 200
      },
      "minItems": 1,
      "maxItems": 500
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    },
    "operation": {
      "type": "string",
      "enum": [
        "generate",
        "read"
      ]
    }
  },
  "required": [
    "campaign_id",
    "person_ids",
    "operation"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "selected_count": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "items": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "person_id": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "run": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "run_id": {
                        "type": "string"
                      },
                      "campaign_id": {
                        "type": "string"
                      },
                      "campaign_revision": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          }
                        ]
                      },
                      "person_id": {
                        "type": "string"
                      },
                      "company_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string"
                      },
                      "input_hash": {
                        "type": "string"
                      },
                      "prompt_version": {
                        "type": "string"
                      },
                      "researcher_model_id": {
                        "type": "string"
                      },
                      "writer_model_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "source_note_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "started_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          }
                        ]
                      },
                      "completed_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "workflow_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          }
                        ]
                      },
                      "updated_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "run_id",
                      "campaign_id",
                      "campaign_revision",
                      "person_id",
                      "company_id",
                      "status",
                      "input_hash",
                      "prompt_version",
                      "researcher_model_id",
                      "writer_model_ids",
                      "source_note_ids",
                      "started_at",
                      "completed_at",
                      "error",
                      "workflow_id",
                      "created_at",
                      "updated_at"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "error": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "person_id",
              "status",
              "run",
              "error"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "person_id": {
                "type": "string"
              },
              "run": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "run_id": {
                        "type": "string"
                      },
                      "campaign_id": {
                        "type": "string"
                      },
                      "campaign_revision": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          }
                        ]
                      },
                      "person_id": {
                        "type": "string"
                      },
                      "company_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string"
                      },
                      "input_hash": {
                        "type": "string"
                      },
                      "prompt_version": {
                        "type": "string"
                      },
                      "researcher_model_id": {
                        "type": "string"
                      },
                      "writer_model_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "source_note_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "started_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          }
                        ]
                      },
                      "completed_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "workflow_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          }
                        ]
                      },
                      "updated_at": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "NaN",
                              "Infinity",
                              "-Infinity"
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "run_id",
                      "campaign_id",
                      "campaign_revision",
                      "person_id",
                      "company_id",
                      "status",
                      "input_hash",
                      "prompt_version",
                      "researcher_model_id",
                      "writer_model_ids",
                      "source_note_ids",
                      "started_at",
                      "completed_at",
                      "error",
                      "workflow_id",
                      "created_at",
                      "updated_at"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "campaign_revision": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "NaN",
                      "Infinity",
                      "-Infinity"
                    ]
                  }
                ]
              },
              "drafts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "variant_id": {
                      "type": "string"
                    },
                    "run_id": {
                      "type": "string"
                    },
                    "campaign_revision": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "NaN",
                            "Infinity",
                            "-Infinity"
                          ]
                        }
                      ]
                    },
                    "platform": {
                      "type": "string"
                    },
                    "variation": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "current_revision": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "revision_id": {
                              "type": "string"
                            },
                            "variant_id": {
                              "type": "string"
                            },
                            "run_id": {
                              "type": "string"
                            },
                            "campaign_id": {
                              "type": "string"
                            },
                            "campaign_revision": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "NaN",
                                    "Infinity",
                                    "-Infinity"
                                  ]
                                }
                              ]
                            },
                            "person_id": {
                              "type": "string"
                            },
                            "company_id": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "platform": {
                              "type": "string"
                            },
                            "variation": {
                              "type": "string"
                            },
                            "revision_number": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "NaN",
                                    "Infinity",
                                    "-Infinity"
                                  ]
                                }
                              ]
                            },
                            "source": {
                              "type": "string"
                            },
                            "operator_user_id": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "subject": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "body": {
                              "type": "string"
                            },
                            "body_html": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "template_id": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "template_variables": {
                              "anyOf": [
                                {},
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "deterministic_message_snapshot": {
                              "anyOf": [
                                {},
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string"
                            },
                            "prepared_at": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "NaN",
                                    "Infinity",
                                    "-Infinity"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "created_at": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "NaN",
                                    "Infinity",
                                    "-Infinity"
                                  ]
                                }
                              ]
                            },
                            "updated_at": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "NaN",
                                    "Infinity",
                                    "-Infinity"
                                  ]
                                }
                              ]
                            }
                          },
                          "required": [
                            "revision_id",
                            "variant_id",
                            "run_id",
                            "campaign_id",
                            "campaign_revision",
                            "person_id",
                            "company_id",
                            "platform",
                            "variation",
                            "revision_number",
                            "source",
                            "operator_user_id",
                            "subject",
                            "body",
                            "body_html",
                            "template_id",
                            "template_variables",
                            "deterministic_message_snapshot",
                            "status",
                            "prepared_at",
                            "created_at",
                            "updated_at"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "variant_id",
                    "run_id",
                    "campaign_revision",
                    "platform",
                    "variation",
                    "status",
                    "current_revision"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "person_id",
              "run",
              "campaign_revision",
              "drafts"
            ],
            "additionalProperties": false
          }
        ]
      }
    }
  },
  "required": [
    "selected_count",
    "is_done",
    "continue_cursor",
    "items"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

set_outreach_contact

Repair the contact of a nonterminal assignment, updating its active attempt and invalidating obsolete Gmail confirmation identity. Does not transmit a message.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "assignment_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "value": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 2048
    }
  },
  "required": [
    "assignment_id",
    "value"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "assignment": {
      "type": "object",
      "properties": {
        "assignment_id": {
          "type": "string"
        },
        "campaign_id": {
          "type": "string"
        },
        "person_id": {
          "type": "string"
        },
        "contact_point_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "contact_kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "normalized_contact_value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "channel": {
          "type": "string",
          "enum": [
            "email",
            "linkedin"
          ]
        },
        "variation": {
          "type": "string",
          "enum": [
            "manual_email",
            "connection_request",
            "inmail_message"
          ]
        },
        "operator_user_id": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "draft_revision_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "recipient_override_revision_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "outreach_attempt_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "sent_state_version": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "reserved_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "expires_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "created_by_operator_user_id": {
          "type": "string"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        }
      },
      "required": [
        "assignment_id",
        "campaign_id",
        "person_id",
        "contact_point_id",
        "contact_kind",
        "normalized_contact_value",
        "channel",
        "variation",
        "operator_user_id",
        "status",
        "draft_revision_id",
        "recipient_override_revision_id",
        "outreach_attempt_id",
        "sent_state_version",
        "reserved_at",
        "expires_at",
        "created_by_operator_user_id",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    },
    "attempt": {},
    "policy": {}
  },
  "required": [
    "assignment",
    "attempt",
    "policy"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

save_outreach_draft_revision

Save exact edited copy for a generated variant; deterministic message-set drafts remain immutable. Nothing is prepared or sent.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "variant_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "subject": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "body": {
      "type": "string"
    }
  },
  "required": [
    "variant_id",
    "body"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "revision_id": {
      "type": "string"
    },
    "variant_id": {
      "type": "string"
    },
    "run_id": {
      "type": "string"
    },
    "campaign_id": {
      "type": "string"
    },
    "campaign_revision": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "person_id": {
      "type": "string"
    },
    "company_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "platform": {
      "type": "string"
    },
    "variation": {
      "type": "string"
    },
    "revision_number": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "source": {
      "type": "string"
    },
    "operator_user_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "subject": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "body": {
      "type": "string"
    },
    "body_html": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "template_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "template_variables": {},
    "deterministic_message_snapshot": {},
    "status": {
      "type": "string"
    },
    "prepared_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    }
  },
  "required": [
    "revision_id",
    "variant_id",
    "run_id",
    "campaign_id",
    "campaign_revision",
    "person_id",
    "company_id",
    "platform",
    "variation",
    "revision_number",
    "source",
    "operator_user_id",
    "subject",
    "body",
    "body_html",
    "template_id",
    "template_variables",
    "deterministic_message_snapshot",
    "status",
    "prepared_at",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_campaigns

List a bounded page of saved outreach campaigns before creating or editing one. Keep scope unchanged when continuing with the returned cursor. No writes.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "scope": {
      "type": "string",
      "enum": [
        "open",
        "archived"
      ],
      "description": "open (default): draft, active and paused campaigns; archived: archived campaigns only."
    },
    "cursor": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string",
          "maxLength": 4000
        }
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "page": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "default",
              "targeted"
            ]
          },
          "name": {
            "type": "string"
          },
          "revision": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "authoring_mode": {
            "type": "string",
            "enum": [
              "generated",
              "deterministic"
            ]
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "platform": {
                  "type": "string",
                  "enum": [
                    "email",
                    "linkedin"
                  ]
                },
                "variation": {
                  "type": "string",
                  "enum": [
                    "manual_email",
                    "connection_request",
                    "inmail_message"
                  ]
                }
              },
              "required": [
                "platform",
                "variation"
              ],
              "additionalProperties": false
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "paused",
              "archived"
            ]
          },
          "active_candidate_count": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "removed_candidate_count": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          }
        },
        "required": [
          "campaign_id",
          "kind",
          "name",
          "revision",
          "authoring_mode",
          "channels",
          "status",
          "active_candidate_count",
          "removed_candidate_count",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "type": "string"
    }
  },
  "required": [
    "page",
    "is_done",
    "continue_cursor"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

read_campaign

Read one saved campaign's exact authoring settings and audience counts. No writes.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "campaign_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "campaign": {
      "type": "object",
      "properties": {
        "campaign_id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "default",
            "targeted"
          ]
        },
        "name": {
          "type": "string"
        },
        "revision": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "authoring_mode": {
          "type": "string",
          "enum": [
            "generated",
            "deterministic"
          ]
        },
        "generation_prompt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "deterministic_message_set": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "email": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "subject": {
                      "type": "string"
                    },
                    "body": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "enabled",
                    "subject",
                    "body"
                  ],
                  "additionalProperties": false
                },
                "linkedin_connection": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "body": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "enabled",
                    "body"
                  ],
                  "additionalProperties": false
                },
                "linkedin_inmail": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "subject": {
                      "type": "string"
                    },
                    "body": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "enabled",
                    "subject",
                    "body"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "email",
                "linkedin_connection",
                "linkedin_inmail"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "channels": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "platform": {
                "type": "string",
                "enum": [
                  "email",
                  "linkedin"
                ]
              },
              "variation": {
                "type": "string",
                "enum": [
                  "manual_email",
                  "connection_request",
                  "inmail_message"
                ]
              }
            },
            "required": [
              "platform",
              "variation"
            ],
            "additionalProperties": false
          }
        },
        "status": {
          "type": "string",
          "enum": [
            "draft",
            "active",
            "paused",
            "archived"
          ]
        },
        "created_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        }
      },
      "required": [
        "campaign_id",
        "kind",
        "name",
        "revision",
        "authoring_mode",
        "generation_prompt",
        "deterministic_message_set",
        "channels",
        "status",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    },
    "candidate_counts": {
      "type": "object",
      "properties": {
        "active": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "removed": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        }
      },
      "required": [
        "active",
        "removed"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "campaign",
    "candidate_counts"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

create_email_campaign

Create or reuse an active targeted campaign with exact email copy and no LinkedIn variations. Identical name and copy retries are safe; conflicting names are refused. Creates no members, drafts, assignments, or sends. If detail readback fails after creation, the committed receipt still identifies the campaign.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "subject": {
      "type": "string",
      "minLength": 1
    },
    "body": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "name",
    "subject",
    "body"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string"
    },
    "created": {
      "type": "object",
      "properties": {
        "campaign_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "campaign_id",
        "name"
      ],
      "additionalProperties": false
    },
    "creation_status": {
      "type": "string",
      "enum": [
        "created",
        "already_exists",
        "recovered_after_write_error"
      ]
    },
    "readback_verified": {
      "type": "boolean"
    },
    "campaign": {
      "type": "object",
      "properties": {
        "campaign": {
          "type": "object",
          "properties": {
            "campaign_id": {
              "type": "string"
            },
            "kind": {
              "type": "string",
              "enum": [
                "default",
                "targeted"
              ]
            },
            "name": {
              "type": "string"
            },
            "revision": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "authoring_mode": {
              "type": "string",
              "enum": [
                "generated",
                "deterministic"
              ]
            },
            "generation_prompt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "deterministic_message_set": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "email": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "subject": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "enabled",
                        "subject",
                        "body"
                      ],
                      "additionalProperties": false
                    },
                    "linkedin_connection": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "body": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "enabled",
                        "body"
                      ],
                      "additionalProperties": false
                    },
                    "linkedin_inmail": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "subject": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "enabled",
                        "subject",
                        "body"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "email",
                    "linkedin_connection",
                    "linkedin_inmail"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "channels": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "platform": {
                    "type": "string",
                    "enum": [
                      "email",
                      "linkedin"
                    ]
                  },
                  "variation": {
                    "type": "string",
                    "enum": [
                      "manual_email",
                      "connection_request",
                      "inmail_message"
                    ]
                  }
                },
                "required": [
                  "platform",
                  "variation"
                ],
                "additionalProperties": false
              }
            },
            "status": {
              "type": "string",
              "enum": [
                "draft",
                "active",
                "paused",
                "archived"
              ]
            },
            "created_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "updated_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            }
          },
          "required": [
            "campaign_id",
            "kind",
            "name",
            "revision",
            "authoring_mode",
            "generation_prompt",
            "deterministic_message_set",
            "channels",
            "status",
            "created_at",
            "updated_at"
          ],
          "additionalProperties": false
        },
        "candidate_counts": {
          "type": "object",
          "properties": {
            "active": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "removed": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            }
          },
          "required": [
            "active",
            "removed"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "campaign",
        "candidate_counts"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "campaign_id",
    "created",
    "creation_status",
    "readback_verified"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

resolve_recipient_tracking_token

Resolve an issued analytics token to its current person. A lookup is not evidence that the recipient visited a link; unknown tokens disclose no person data.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$"
    }
  },
  "required": [
    "token"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "found": {
          "type": "boolean",
          "enum": [
            false
          ]
        },
        "token": {
          "type": "string"
        }
      },
      "required": [
        "found",
        "token"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "found": {
          "type": "boolean",
          "enum": [
            true
          ]
        },
        "token": {
          "type": "string"
        },
        "person_id": {
          "type": "string"
        },
        "full_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "current_title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "merged_from_person_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "found",
        "token",
        "person_id",
        "full_name",
        "current_title",
        "merged_from_person_id"
      ],
      "additionalProperties": false
    }
  ],
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

record_campaign_link_visits

For one campaign, import pasted per-utm_content cumulative analytics totals (maximum 500 rows). Latest import replaces counts, including clearing omitted people. Use a unique import_id; exact retries return the original receipt without reapplying it. The calling agent MUST ask the person providing analytics data for page_views and bounce_rate (0–100), both per utm_content row and for the campaign-level filter, and MUST remind them if either is missing. Imports without them are accepted but flagged incomplete with machine-readable warnings; surface those reminders. If the source is Vercel, its dashboard shows per-row values when filtered by one utm_content and campaign-level values under the whole campaign filter. Missing bounce is unknown, not zero. source is a provider-neutral label. Unknown or unsent recipients are reported, never counted. Read back with get_campaign_link_visit_import.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "import_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "source": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 100
    },
    "observed_since": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "observed_until": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "page_views": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "bounce_rate": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ],
      "minimum": 0,
      "maximum": 100
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "utm_content": {
            "type": "string",
            "maxLength": 200
          },
          "visitors": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "page_views": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "bounce_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ],
            "minimum": 0,
            "maximum": 100
          }
        },
        "required": [
          "utm_content",
          "visitors"
        ],
        "additionalProperties": false
      },
      "maxItems": 500
    }
  },
  "required": [
    "campaign_id",
    "import_id",
    "source",
    "observed_since",
    "observed_until",
    "rows"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string"
    },
    "import_id": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "observed_since": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "observed_until": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "recorded_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "recorded_by": {
      "type": "string"
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "utm_content": {
            "type": "string"
          },
          "person_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "outcome": {
            "type": "string",
            "enum": [
              "matched",
              "unknown_token",
              "not_sent_in_campaign"
            ]
          },
          "visitors": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "page_views": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "bounce_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "engaged_visitors": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "utm_content",
          "person_id",
          "outcome",
          "visitors",
          "bounce_rate",
          "engaged_visitors"
        ],
        "additionalProperties": false
      }
    },
    "visitors": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "page_views": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "bounce_rate": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "matched": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "incomplete": {
      "type": "boolean"
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "missing_page_views",
              "missing_bounce_rate"
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "campaign",
              "row"
            ]
          },
          "row_count": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "scope",
          "row_count",
          "message"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "campaign_id",
    "import_id",
    "source",
    "observed_since",
    "observed_until",
    "recorded_at",
    "recorded_by",
    "rows",
    "visitors",
    "page_views",
    "bounce_rate",
    "matched",
    "incomplete",
    "warnings"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_campaign_link_visit_import

Read an import receipt by campaign_id and optional import_id (latest by default), including row outcomes, bounce_rate, engaged_visitors and totals. The calling agent MUST ask the person providing analytics data for page_views and bounce_rate per utm_content row and for the campaign-level filter, and MUST remind them if either is missing. Imports without them are accepted but flagged incomplete; surface the receipt warnings and ask for the missing data (if the source is Vercel, filter its dashboard by one utm_content for per-row values). With no import, returns {campaign_id, import_id: null, rows: []}. No writes.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "import_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "campaign_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "campaign_id": {
          "type": "string"
        },
        "import_id": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "observed_since": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "observed_until": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "recorded_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "recorded_by": {
          "type": "string"
        },
        "rows": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "utm_content": {
                "type": "string"
              },
              "person_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "matched",
                  "unknown_token",
                  "not_sent_in_campaign"
                ]
              },
              "visitors": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "NaN",
                      "Infinity",
                      "-Infinity"
                    ]
                  }
                ]
              },
              "page_views": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "NaN",
                      "Infinity",
                      "-Infinity"
                    ]
                  }
                ]
              },
              "bounce_rate": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "NaN",
                      "Infinity",
                      "-Infinity"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "engaged_visitors": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "NaN",
                      "Infinity",
                      "-Infinity"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "utm_content",
              "person_id",
              "outcome",
              "visitors",
              "bounce_rate",
              "engaged_visitors"
            ],
            "additionalProperties": false
          }
        },
        "visitors": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "page_views": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "bounce_rate": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "matched": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "incomplete": {
          "type": "boolean"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "missing_page_views",
                  "missing_bounce_rate"
                ]
              },
              "scope": {
                "type": "string",
                "enum": [
                  "campaign",
                  "row"
                ]
              },
              "row_count": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "NaN",
                      "Infinity",
                      "-Infinity"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "scope",
              "row_count",
              "message"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "campaign_id",
        "import_id",
        "source",
        "observed_since",
        "observed_until",
        "recorded_at",
        "recorded_by",
        "rows",
        "visitors",
        "page_views",
        "bounce_rate",
        "matched",
        "incomplete",
        "warnings"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "campaign_id": {
          "type": "string"
        },
        "import_id": {
          "type": "null"
        },
        "rows": {
          "type": "array",
          "items": {
            "not": {}
          }
        }
      },
      "required": [
        "campaign_id",
        "import_id",
        "rows"
      ],
      "additionalProperties": false
    }
  ],
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

record_outreach_reply

Record a reply for a sent outreach_attempt_id from list_sent_outreach, with replied_at (epoch milliseconds) and optional note. Repeating a recorded reply is a no-op. Set replied:false to undo and restore its previous sent status. Preserves sent_at and send evidence. Read back with get_outreach_reply.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "outreach_attempt_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "replied": {
      "type": "boolean"
    },
    "replied_at": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "note": {
      "type": "string",
      "maxLength": 2000
    }
  },
  "required": [
    "outreach_attempt_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "outreach_attempt_id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "sent_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "has_tracked_link": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "reply": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "replied_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "note": {
              "type": "string"
            },
            "previous_status": {
              "type": "string",
              "enum": [
                "manual_marked_sent",
                "sent_confirmed"
              ]
            },
            "recorded_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "recorded_by": {
              "type": "string"
            },
            "undone_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "undone_by": {
              "type": "string"
            }
          },
          "required": [
            "replied_at",
            "previous_status",
            "recorded_at",
            "recorded_by"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "outreach_attempt_id",
    "status",
    "sent_at",
    "has_tracked_link",
    "reply"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_outreach_reply

Read attempt status, tracked-link flag, and recorded reply or undo audit. No writes.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "outreach_attempt_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "outreach_attempt_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "outreach_attempt_id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "sent_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "has_tracked_link": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "reply": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "replied_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "note": {
              "type": "string"
            },
            "previous_status": {
              "type": "string",
              "enum": [
                "manual_marked_sent",
                "sent_confirmed"
              ]
            },
            "recorded_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "recorded_by": {
              "type": "string"
            },
            "undone_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "undone_by": {
              "type": "string"
            }
          },
          "required": [
            "replied_at",
            "previous_status",
            "recorded_at",
            "recorded_by"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "outreach_attempt_id",
    "status",
    "sent_at",
    "has_tracked_link",
    "reply"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_operators

List a bounded page of verified, admitted operators. Continue even after a short page until is_done. No writes.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "cursor": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string",
          "maxLength": 4000
        }
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 25
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "operators": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "operator_user_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        },
        "required": [
          "operator_user_id",
          "name",
          "email"
        ],
        "additionalProperties": false
      }
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "operators",
    "is_done",
    "continue_cursor"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_campaign_members

Read a bounded page of one campaign's active or removed members with each person's title and company and every active outreach assignment they have in this campaign: assignment_id, channel, variation, status and the owning operator. Use it to choose person_ids for bulk_assign_outreach and to read ownership back afterwards. Continue with continue_cursor as cursor and unchanged campaign_id and status until is_done; changing either invalidates the cursor. No writes.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "removed"
      ]
    },
    "cursor": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string",
          "maxLength": 4000
        }
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "campaign_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "members": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "person_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "current_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "membership_status": {
            "type": "string",
            "enum": [
              "active",
              "removed"
            ]
          },
          "owners": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "assignment_id": {
                  "type": "string"
                },
                "channel": {
                  "type": "string",
                  "enum": [
                    "email",
                    "linkedin"
                  ]
                },
                "variation": {
                  "type": "string",
                  "enum": [
                    "manual_email",
                    "connection_request",
                    "inmail_message"
                  ]
                },
                "status": {
                  "type": "string"
                },
                "operator_user_id": {
                  "type": "string"
                },
                "operator_name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "operator_email": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "assignment_id",
                "channel",
                "variation",
                "status",
                "operator_user_id",
                "operator_name",
                "operator_email"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "person_id",
          "name",
          "current_title",
          "current_company_name",
          "membership_status",
          "owners"
        ],
        "additionalProperties": false
      }
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "members",
    "is_done",
    "continue_cursor"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

archive_campaign

Archive a targeted campaign without deleting members, drafts, assignments or send evidence. An already archived campaign is returned without another write. The default campaign cannot be archived.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "campaign_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "archive_status": {
      "type": "string",
      "enum": [
        "archived",
        "already_archived"
      ]
    },
    "campaign": {
      "type": "object",
      "properties": {
        "campaign": {
          "type": "object",
          "properties": {
            "campaign_id": {
              "type": "string"
            },
            "kind": {
              "type": "string",
              "enum": [
                "default",
                "targeted"
              ]
            },
            "name": {
              "type": "string"
            },
            "revision": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "authoring_mode": {
              "type": "string",
              "enum": [
                "generated",
                "deterministic"
              ]
            },
            "generation_prompt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "deterministic_message_set": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "email": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "subject": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "enabled",
                        "subject",
                        "body"
                      ],
                      "additionalProperties": false
                    },
                    "linkedin_connection": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "body": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "enabled",
                        "body"
                      ],
                      "additionalProperties": false
                    },
                    "linkedin_inmail": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "subject": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "enabled",
                        "subject",
                        "body"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "email",
                    "linkedin_connection",
                    "linkedin_inmail"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "channels": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "platform": {
                    "type": "string",
                    "enum": [
                      "email",
                      "linkedin"
                    ]
                  },
                  "variation": {
                    "type": "string",
                    "enum": [
                      "manual_email",
                      "connection_request",
                      "inmail_message"
                    ]
                  }
                },
                "required": [
                  "platform",
                  "variation"
                ],
                "additionalProperties": false
              }
            },
            "status": {
              "type": "string",
              "enum": [
                "draft",
                "active",
                "paused",
                "archived"
              ]
            },
            "created_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "updated_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            }
          },
          "required": [
            "campaign_id",
            "kind",
            "name",
            "revision",
            "authoring_mode",
            "generation_prompt",
            "deterministic_message_set",
            "channels",
            "status",
            "created_at",
            "updated_at"
          ],
          "additionalProperties": false
        },
        "candidate_counts": {
          "type": "object",
          "properties": {
            "active": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "removed": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            }
          },
          "required": [
            "active",
            "removed"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "campaign",
        "candidate_counts"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "archive_status",
    "campaign"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

plan_delete_campaigns

Read-only cascade counts for up to 50 campaigns. Always plan first. Shared person tracking tokens and opportunity attributions are preserved. Counts reflect the observed records; deletion checks sent history again atomically.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "campaign_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1,
        "maxLength": 200
      },
      "minItems": 1,
      "maxItems": 50
    }
  },
  "required": [
    "campaign_ids"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "campaigns": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "default",
              "targeted"
            ]
          },
          "counts": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "sent_outreach": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "requires_allow_sent": {
            "type": "boolean"
          },
          "analytics": {
            "type": "string",
            "enum": [
              "invalidate_and_recompute"
            ]
          },
          "preserved": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "campaign_id",
          "name",
          "kind",
          "counts",
          "sent_outreach",
          "requires_allow_sent",
          "analytics",
          "preserved"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "campaigns"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

delete_campaigns

Plan first with plan_delete_campaigns. Permanently delete up to 50 campaigns with DELETE_SCRYU_CAMPAIGNS and a reason. Sent outreach requires explicit allow_sent: true. Returns resumable deletion receipts; read get_campaign_deletion until complete and read list_campaigns back. Repeat the same deletion to resume a stalled job.

outreach

Input schema
{
  "type": "object",
  "properties": {
    "campaign_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1,
        "maxLength": 200
      },
      "minItems": 1,
      "maxItems": 50
    },
    "confirmation": {
      "type": "string",
      "enum": [
        "DELETE_SCRYU_CAMPAIGNS"
      ]
    },
    "reason": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 2000
    },
    "allow_sent": {
      "type": "boolean"
    }
  },
  "required": [
    "campaign_ids",
    "confirmation",
    "reason"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "receipts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "running",
              "complete"
            ]
          },
          "counts": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "created_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          }
        },
        "required": [
          "campaign_id",
          "name",
          "reason",
          "status",
          "counts",
          "created_at"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "receipts"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_campaign_deletion

Read a campaign deletion receipt and completed cascade counts. A running receipt is not completed deletion.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "campaign_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "campaign_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "running",
            "complete"
          ]
        },
        "counts": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "created_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        }
      },
      "required": [
        "campaign_id",
        "name",
        "reason",
        "status",
        "counts",
        "created_at"
      ],
      "additionalProperties": false
    },
    {
      "type": "null"
    }
  ],
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

count_sent_outreach

Count the whole team's sent attempts by sender and medium for any admitted operator. Filter by campaign_id, channel (email or linkedin), sent_since inclusive and sent_until exclusive (epoch milliseconds). Each sent attempt counts once regardless of evidence rows; this is sends, not distinct recipients. Continue until is_done with every filter unchanged, adding each call's counts. No recipients, message content or writes.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "channel": {
      "type": "string",
      "enum": [
        "email",
        "linkedin"
      ]
    },
    "sent_since": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "sent_until": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "cursor": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string",
          "maxLength": 4000
        }
      ]
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "scope": {
      "type": "object",
      "properties": {
        "campaign_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "channel": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "email",
                "linkedin"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "campaign_id",
        "channel"
      ],
      "additionalProperties": false
    },
    "window": {
      "type": "object",
      "properties": {
        "sent_since": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "sent_until": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "sent_since",
        "sent_until"
      ],
      "additionalProperties": false
    },
    "counted_through_sent_at": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "total_sent": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "enum": [
            "NaN",
            "Infinity",
            "-Infinity"
          ]
        }
      ]
    },
    "operators": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "operator_user_id": {
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_sent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "by_medium": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "enum": [
                    "email",
                    "linkedin"
                  ]
                },
                "variation": {
                  "type": "string",
                  "enum": [
                    "manual_email",
                    "connection_request",
                    "inmail_message"
                  ]
                },
                "sent": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": [
                        "NaN",
                        "Infinity",
                        "-Infinity"
                      ]
                    }
                  ]
                }
              },
              "required": [
                "channel",
                "variation",
                "sent"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "operator_user_id",
          "name",
          "email",
          "total_sent",
          "by_medium"
        ],
        "additionalProperties": false
      }
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "scope",
    "window",
    "counted_through_sent_at",
    "total_sent",
    "operators",
    "is_done",
    "continue_cursor"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_sent_outreach

Read a bounded page of the whole team's sent attempts for any admitted operator, independent of assignment ownership. Filter by campaign_id, channel, sent_since inclusive and sent_until exclusive (epoch milliseconds). Returns canonical recipient IDs, current company/title, sender identity, send time and proof source, without message copy, BCC tokens or raw provider evidence. Each sent attempt appears once, including after later bounce/reply. Continue until is_done with every filter unchanged; deduplicate person_id for distinct recipients and correlate resolve_recipient_tracking_token results by person_id. Limit 1-50, default 25. No writes.

outreach / read-only

Input schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "channel": {
      "type": "string",
      "enum": [
        "email",
        "linkedin"
      ]
    },
    "sent_since": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "sent_until": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "cursor": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string",
          "maxLength": 4000
        }
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "scope": {
      "type": "object",
      "properties": {
        "campaign_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "channel": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "email",
                "linkedin"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "campaign_id",
        "channel"
      ],
      "additionalProperties": false
    },
    "window": {
      "type": "object",
      "properties": {
        "sent_since": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "sent_until": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "sent_since",
        "sent_until"
      ],
      "additionalProperties": false
    },
    "outreach": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "outreach_attempt_id": {
            "type": "string"
          },
          "campaign_id": {
            "type": "string"
          },
          "person_id": {
            "type": "string"
          },
          "person_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "operator_user_id": {
            "type": "string"
          },
          "operator_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "operator_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "linkedin"
            ]
          },
          "variation": {
            "type": "string",
            "enum": [
              "manual_email",
              "connection_request",
              "inmail_message"
            ]
          },
          "sent_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              }
            ]
          },
          "send_proof_source": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "manual",
                  "agent_confirmed",
                  "gmail_bcc_copy",
                  "verified_provider"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "outreach_attempt_id",
          "campaign_id",
          "person_id",
          "person_name",
          "current_title",
          "current_company_name",
          "operator_user_id",
          "operator_name",
          "operator_email",
          "channel",
          "variation",
          "sent_at",
          "send_proof_source"
        ],
        "additionalProperties": false
      }
    },
    "is_done": {
      "type": "boolean"
    },
    "continue_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "scope",
    "window",
    "outreach",
    "is_done",
    "continue_cursor"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_statistics

Read chart-ready statistics for any admitted operator; call again to refresh. Datasets: inventory (people and companies per snapshot_day; days 1-30, default 30; line or vertical bars, chronological), coverage (coverage_percent, or covered_count and missing_count, by quality_component; optional components; bars), readiness (email_ready and linkedin_ready by company_tag; optional tag_ids from list_company_tags and include_untagged; bars), all from the latest analytics snapshot, which production refreshes daily and staging only on a deliberate refresh; and usage (who uses Scryu and how much: calls and failures, or avg_duration_ms alone, grouped by person, surface, client or method with an optional breakdown; days 1-90, default 7; defaults to person with breakdown surface and client; bars), read live from usage analytics for this environment. Each series' values are (number | null)[] aligned with categories; null means unmeasured or missing (an inventory day without a snapshot is null), never zero. snapshot.day and window bounds are epoch ms. Readiness channels and tags overlap, and usage failures are a subset of calls, so stacked bars are refused and values must not be summed into a total. Limits: 30 snapshot or 90 usage days, 6 series, 100 categories, 128 KiB; excess is refused with a statistics_* code, never truncated. Check completeness for gaps, unmatched tag ids and the 2-day trend policy, and snapshot (or usage window) for freshness. No writes or provider calls.

statistics / read-only

Input schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "object",
      "properties": {
        "dataset": {
          "type": "string",
          "enum": [
            "inventory",
            "coverage",
            "readiness",
            "usage"
          ],
          "description": "inventory (people/companies per snapshot day), coverage (data-quality components), readiness (email/LinkedIn ready to contact by company tag) or usage (who uses Scryu, through which surface and client, and how much)."
        },
        "metrics": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "people",
              "companies",
              "coverage_percent",
              "covered_count",
              "missing_count",
              "email_ready",
              "linkedin_ready",
              "calls",
              "failures",
              "avg_duration_ms"
            ]
          },
          "minItems": 1,
          "description": "Series to return, at most 6. inventory: people, companies. coverage: coverage_percent, covered_count, missing_count (one unit per request). readiness: email_ready, linkedin_ready. usage: calls, failures (counts) or avg_duration_ms (milliseconds, requested alone). Defaults to the dataset's standard metrics."
        },
        "group_by": {
          "type": "string",
          "enum": [
            "snapshot_day",
            "quality_component",
            "company_tag",
            "person",
            "surface",
            "client",
            "method"
          ],
          "description": "Category axis: snapshot_day (inventory), quality_component (coverage), company_tag (readiness), or person, surface, client or method (usage). Defaults to the dataset's grouping; usage defaults to person."
        },
        "days": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991,
          "description": "inventory: snapshot days ending at the latest snapshot, at most 30, default 30. usage: days ending now, at most 90, default 7."
        },
        "tag_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
            "minLength": 1,
            "maxLength": 200
          },
          "minItems": 1,
          "description": "readiness only: company tag ids from list_company_tags, at most 100. Omit for every tag with ready people."
        },
        "include_untagged": {
          "type": "boolean",
          "description": "readiness only: include the No company tag category. Defaults to true."
        },
        "components": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "usable_email",
              "linkedin",
              "current_company",
              "current_title",
              "profile",
              "domain",
              "company_people",
              "company_email"
            ]
          },
          "minItems": 1,
          "description": "coverage only: components to include. Defaults to all."
        },
        "breakdown": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "snapshot_day",
              "quality_component",
              "company_tag",
              "person",
              "surface",
              "client",
              "method"
            ]
          },
          "description": "usage only: further groupings (person, surface, client, method) that split each groupBy category, such as groupBy person with breakdown [surface, client]. Defaults to [surface, client] when groupBy is omitted, otherwise none; pass [] for none."
        }
      },
      "required": [
        "dataset"
      ],
      "additionalProperties": false
    },
    "presentation": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "bar",
            "line"
          ],
          "description": "bar, or line for inventory time series only."
        },
        "orientation": {
          "type": "string",
          "enum": [
            "horizontal",
            "vertical"
          ],
          "description": "Bars only. Time series use vertical bars; categories default to horizontal."
        },
        "mode": {
          "type": "string",
          "enum": [
            "single",
            "grouped",
            "stacked"
          ],
          "description": "single (one metric) or grouped (2 or more). stacked is refused: no v1 dataset has a stackable total, and readiness populations overlap."
        },
        "sort": {
          "type": "string",
          "enum": [
            "chronological",
            "descending",
            "ascending",
            "label"
          ],
          "description": "chronological for time series (the only option). Categories: descending (default) or ascending by the first metric, or label."
        }
      },
      "required": [
        "type"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "dataset": {
      "type": "string",
      "enum": [
        "inventory",
        "coverage",
        "readiness",
        "usage"
      ]
    },
    "title": {
      "type": "string"
    },
    "query": {
      "type": "object",
      "properties": {
        "dataset": {
          "type": "string",
          "enum": [
            "inventory",
            "coverage",
            "readiness",
            "usage"
          ]
        },
        "metrics": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "people",
              "companies",
              "coverage_percent",
              "covered_count",
              "missing_count",
              "email_ready",
              "linkedin_ready",
              "calls",
              "failures",
              "avg_duration_ms"
            ]
          }
        },
        "group_by": {
          "type": "string",
          "enum": [
            "snapshot_day",
            "quality_component",
            "company_tag",
            "person",
            "surface",
            "client",
            "method"
          ]
        },
        "days": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "tag_ids": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "include_untagged": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "components": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "usable_email",
                  "linkedin",
                  "current_company",
                  "current_title",
                  "profile",
                  "domain",
                  "company_people",
                  "company_email"
                ]
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "breakdown": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "snapshot_day",
                  "quality_component",
                  "company_tag",
                  "person",
                  "surface",
                  "client",
                  "method"
                ]
              }
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "dataset",
        "metrics",
        "group_by",
        "days",
        "tag_ids",
        "include_untagged",
        "components",
        "breakdown"
      ],
      "additionalProperties": false
    },
    "presentation": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "bar",
            "line"
          ]
        },
        "orientation": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "horizontal",
                "vertical"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "mode": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "single",
                "grouped",
                "stacked"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "sort": {
          "type": "string",
          "enum": [
            "chronological",
            "descending",
            "ascending",
            "label"
          ]
        }
      },
      "required": [
        "type",
        "orientation",
        "mode",
        "sort"
      ],
      "additionalProperties": false
    },
    "category_axis": {
      "type": "object",
      "properties": {
        "group_by": {
          "type": "string",
          "enum": [
            "snapshot_day",
            "quality_component",
            "company_tag",
            "person",
            "surface",
            "client",
            "method"
          ]
        },
        "label": {
          "type": "string"
        }
      },
      "required": [
        "group_by",
        "label"
      ],
      "additionalProperties": false
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "snapshot_day",
              "quality_component",
              "company_tag",
              "untagged",
              "usage"
            ]
          }
        },
        "required": [
          "id",
          "label",
          "kind"
        ],
        "additionalProperties": false
      }
    },
    "series": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "people",
              "companies",
              "coverage_percent",
              "covered_count",
              "missing_count",
              "email_ready",
              "linkedin_ready",
              "calls",
              "failures",
              "avg_duration_ms"
            ]
          },
          "label": {
            "type": "string"
          },
          "unit": {
            "type": "string",
            "enum": [
              "count",
              "percent",
              "milliseconds"
            ]
          },
          "values": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "denominators": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "NaN",
                            "Infinity",
                            "-Infinity"
                          ]
                        }
                      ],
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "label",
          "unit",
          "values",
          "denominators"
        ],
        "additionalProperties": false
      }
    },
    "metrics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "people",
              "companies",
              "coverage_percent",
              "covered_count",
              "missing_count",
              "email_ready",
              "linkedin_ready",
              "calls",
              "failures",
              "avg_duration_ms"
            ]
          },
          "label": {
            "type": "string"
          },
          "unit": {
            "type": "string",
            "enum": [
              "count",
              "percent",
              "milliseconds"
            ]
          },
          "definition": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "label",
          "unit",
          "definition"
        ],
        "additionalProperties": false
      }
    },
    "snapshot": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "day": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "started_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "completed_at": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            }
          },
          "required": [
            "day",
            "started_at",
            "completed_at"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "window": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "start": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            },
            "end": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                }
              ]
            }
          },
          "required": [
            "start",
            "end"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "composition": {
      "type": "object",
      "properties": {
        "series": {
          "type": "string",
          "enum": [
            "independent",
            "overlapping",
            "partition"
          ]
        },
        "categories": {
          "type": "string",
          "enum": [
            "time",
            "independent",
            "overlapping"
          ]
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "series",
        "categories",
        "note"
      ],
      "additionalProperties": false
    },
    "completeness": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "complete",
            "partial",
            "insufficient_history",
            "empty"
          ]
        },
        "window_days": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "snapshot_days": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            }
          ]
        },
        "min_trend_days": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "NaN",
                "Infinity",
                "-Infinity"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "unmatched_tag_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "notes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "status",
        "window_days",
        "snapshot_days",
        "min_trend_days",
        "unmatched_tag_ids",
        "notes"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "dataset",
    "title",
    "query",
    "presentation",
    "category_axis",
    "categories",
    "series",
    "metrics",
    "snapshot",
    "window",
    "composition",
    "completeness"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_company_research_notes

Return append-only research notes attached to a company, newest first.

companies / read-only

Input schema
{
  "type": "object",
  "properties": {
    "company_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "company_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "notes": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "note_id": {
                "type": "string"
              },
              "entity_type": {
                "type": "string",
                "enum": [
                  "company",
                  "person",
                  "opportunity"
                ]
              },
              "entity_id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "body_markdown": {
                "type": "string"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "source_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "related_note_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "note_id",
              "entity_type",
              "entity_id",
              "title",
              "body_markdown",
              "tags",
              "source_urls",
              "related_note_ids",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "items",
        "truncated"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "notes"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

create_company_research_note

Create an append-only research note attached to an existing company. Returns the canonical saved note, including note_id, title and body_markdown; report saved values from it.

companies

Input schema
{
  "type": "object",
  "properties": {
    "company_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "title": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 160
    },
    "body_markdown": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 65536
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 20
    },
    "source_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$"
      },
      "maxItems": 20
    },
    "related_note_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
        "minLength": 1
      },
      "maxItems": 20
    }
  },
  "required": [
    "company_id",
    "title",
    "body_markdown"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "note": {
      "type": "object",
      "properties": {
        "note_id": {
          "type": "string"
        },
        "entity_type": {
          "type": "string",
          "enum": [
            "company",
            "person",
            "opportunity"
          ]
        },
        "entity_id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "body_markdown": {
          "type": "string"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "source_urls": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "related_note_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "created_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "updated_at": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "note_id",
        "entity_type",
        "entity_id",
        "title",
        "body_markdown",
        "tags",
        "source_urls",
        "related_note_ids",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "note"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_active_engagements

Return a bounded list of sold opportunities in active delivery, optionally filtered by company or owner. booked_value is the engagement's value (the signed amount from its opportunity); estimated_spend_* is the pre-sale estimate. next_task_title and next_task_due_at are the next action.

opportunities / read-only

Input schema
{
  "type": "object",
  "properties": {
    "owner_operator_user_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "company_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "engagements": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "engagement_id": {
            "type": "string"
          },
          "opportunity_id": {
            "type": "string"
          },
          "company_id": {
            "type": "string"
          },
          "company_name": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_operator_user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "primary_contact_person_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "primary_contact_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "estimated_spend_min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "estimated_spend_max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "estimated_spend_confidence": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "started_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "created_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "updated_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "completion_stage": {
            "type": "string",
            "enum": [
              "qualification",
              "scoping",
              "contracting"
            ]
          },
          "active_opportunity_id": {
            "type": "string"
          },
          "priority": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high",
              "urgent"
            ]
          },
          "health": {
            "type": "string",
            "enum": [
              "on_track",
              "needs_attention",
              "blocked",
              "stale",
              "unknown"
            ]
          },
          "booked_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "NaN",
                  "Infinity",
                  "-Infinity"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "next_action": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "next_action_due_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "next_task_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "next_task_due_at": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "open_task_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "overdue_task_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "open_requirement_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "missing_critical_requirement_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "blocked_requirement_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "activity_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "deliverable_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "delivered_deliverable_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "engagement_id",
          "opportunity_id",
          "company_id",
          "company_name",
          "name",
          "summary",
          "owner_operator_user_id",
          "owner_name",
          "primary_contact_person_id",
          "primary_contact_name",
          "estimated_spend_min",
          "estimated_spend_max",
          "estimated_spend_confidence",
          "started_at",
          "created_at",
          "updated_at",
          "completion_stage",
          "active_opportunity_id",
          "priority",
          "health",
          "booked_value",
          "next_action",
          "next_action_due_at",
          "next_task_title",
          "next_task_due_at",
          "open_task_count",
          "overdue_task_count",
          "open_requirement_count",
          "missing_critical_requirement_count",
          "blocked_requirement_count",
          "activity_at",
          "deliverable_count",
          "delivered_deliverable_count"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "engagements"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_active_engagement

Return active delivery details and the source sold opportunity context. An engagement is the opportunity's delivery phase: it shares the opportunity's tasks, requirements, notes, people and value, and adds deliverables. Change shared fields through the opportunity tools.

opportunities / read-only

Input schema
{
  "type": "object",
  "properties": {
    "engagement_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1
    }
  },
  "required": [
    "engagement_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "engagement": {
      "type": "object",
      "properties": {
        "opportunity": {
          "type": "object",
          "properties": {
            "opportunity_id": {
              "type": "string"
            },
            "company_id": {
              "type": "string"
            },
            "organization_doc_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "summary": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "stage": {
              "type": "string",
              "enum": [
                "qualification",
                "scoping",
                "contracting"
              ]
            },
            "outcome": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "sold",
                    "lost"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "completion_stage": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "qualification",
                    "scoping",
                    "contracting"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "loss_reason": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "active_engagement_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "priority": {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high",
                "urgent"
              ]
            },
            "health": {
              "type": "string",
              "enum": [
                "on_track",
                "needs_attention",
                "blocked",
                "stale",
                "unknown"
              ]
            },
            "owner_operator_user_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_contact_person_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "source_type": {
              "type": "string",
              "enum": [
                "manual",
                "search",
                "research_objective",
                "campaign",
                "signal",
                "referral"
              ]
            },
            "source_search_ids": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "estimated_spend": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "min": {
                      "type": "number",
                      "minimum": 0
                    },
                    "max": {
                      "type": "number",
                      "minimum": 0
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "USD"
                      ]
                    },
                    "period": {
                      "type": "string",
                      "enum": [
                        "one_time",
                        "monthly",
                        "annual"
                      ]
                    },
                    "confidence": {
                      "type": "string",
                      "enum": [
                        "low",
                        "medium",
                        "high"
                      ]
                    },
                    "basis": {
                      "type": "string"
                    },
                    "source_note_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "currency",
                    "confidence",
                    "basis",
                    "source_note_ids"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "booked_value": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ]
            },
            "target_close_date": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_action": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_action_due_at": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "created_by_operator_user_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "created_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "updated_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "closed_at": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "archived_at": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "opportunity_id",
            "company_id",
            "organization_doc_id",
            "name",
            "summary",
            "stage",
            "outcome",
            "completion_stage",
            "loss_reason",
            "active_engagement_id",
            "priority",
            "health",
            "owner_operator_user_id",
            "primary_contact_person_id",
            "source_type",
            "source_search_ids",
            "estimated_spend",
            "booked_value",
            "target_close_date",
            "next_action",
            "next_action_due_at",
            "created_by_operator_user_id",
            "created_at",
            "updated_at",
            "closed_at",
            "archived_at"
          ],
          "additionalProperties": false
        },
        "company": {
          "type": "object",
          "properties": {
            "company_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "primary_domain": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "source_company_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "hq": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "size_band": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "known_relevant_people_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "recent_match_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "recent_matches_truncated": {
              "type": "boolean"
            },
            "latest_surfaced_at": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "last_observed_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "completeness": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "rich",
                    "partial",
                    "skeleton",
                    "needs_refresh"
                  ]
                },
                "missing_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "present_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "priority_missing_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "status",
                "missing_fields",
                "present_fields",
                "priority_missing_fields"
              ],
              "additionalProperties": false
            },
            "tags": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "tag_id": {
                    "type": "string"
                  },
                  "key": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "color": {
                    "type": "string"
                  },
                  "icon_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "icon_path": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "seeded",
                      "custom"
                    ]
                  }
                },
                "required": [
                  "tag_id",
                  "key",
                  "label",
                  "color",
                  "icon_key",
                  "icon_path",
                  "source"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "company_id",
            "name",
            "primary_domain",
            "source_company_url",
            "hq",
            "size_band",
            "known_relevant_people_count",
            "recent_match_count",
            "recent_matches_truncated",
            "latest_surfaced_at",
            "updated_at",
            "last_observed_at",
            "completeness",
            "tags"
          ],
          "additionalProperties": false
        },
        "participants": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "person_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "person": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "person_id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "current_title": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_company_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_company_name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_company_size_band": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_employment_source_claim": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "import"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "unverified"
                                ]
                              },
                              "reference_id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "source",
                              "status",
                              "reference_id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_title_source_claim": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "import"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "unverified"
                                ]
                              },
                              "reference_id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "source",
                              "status",
                              "reference_id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "location": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "country_code": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "about_summary": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_profile_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "profile_image_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_email": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_email_status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "unverified",
                              "verified",
                              "bounced",
                              "invalid",
                              "opted_out",
                              "stale",
                              "do_not_contact"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_email_source": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "manual",
                              "inbound_email",
                              "gmail_sync",
                              "provider",
                              "research_note",
                              "linkedin_profile",
                              "import"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_phone": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_phone_status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "unverified",
                              "verified",
                              "bounced",
                              "invalid",
                              "opted_out",
                              "stale",
                              "do_not_contact"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_phone_source": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "manual",
                              "inbound_email",
                              "gmail_sync",
                              "provider",
                              "research_note",
                              "linkedin_profile",
                              "import"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "recent_match_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "recent_matches_truncated": {
                        "type": "boolean"
                      },
                      "latest_surfaced_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updated_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "last_observed_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "completeness": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "rich",
                              "partial",
                              "skeleton",
                              "needs_refresh"
                            ]
                          },
                          "missing_fields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "present_fields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "priority_missing_fields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "status",
                          "missing_fields",
                          "present_fields",
                          "priority_missing_fields"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "person_id",
                      "name",
                      "current_title",
                      "current_company_id",
                      "current_company_name",
                      "current_company_size_band",
                      "current_employment_source_claim",
                      "current_title_source_claim",
                      "location",
                      "country_code",
                      "about_summary",
                      "source_profile_url",
                      "profile_image_url",
                      "primary_email",
                      "primary_email_status",
                      "primary_email_source",
                      "primary_phone",
                      "primary_phone_status",
                      "primary_phone_source",
                      "recent_match_count",
                      "recent_matches_truncated",
                      "latest_surfaced_at",
                      "updated_at",
                      "last_observed_at",
                      "completeness"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "operator_user_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "operator_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "role": {
                "type": "string",
                "enum": [
                  "primary_buyer",
                  "economic_buyer",
                  "champion",
                  "technical_evaluator",
                  "security",
                  "legal",
                  "procurement",
                  "blocker",
                  "advisor",
                  "stakeholder",
                  "unknown",
                  "owner",
                  "supporting_operator",
                  "technical_owner",
                  "delivery_owner",
                  "executive_sponsor"
                ]
              },
              "relationship_status": {
                "type": "string",
                "enum": [
                  "unknown",
                  "active",
                  "supportive",
                  "neutral",
                  "blocked"
                ]
              },
              "notes": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_primary": {
                "type": "boolean"
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hydration": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "refresh_id": {
                        "type": "string"
                      },
                      "person_id": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "running",
                          "completed",
                          "failed"
                        ]
                      },
                      "outcome": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "improved",
                              "no_change",
                              "needs_review",
                              "failed"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "changed_fields": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "acquisition_route": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "evidence_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "proposed_fields": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "applied_fields": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string"
                            },
                            "before": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "after": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            "evidence_urls": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^https?:\\/\\/"
                              }
                            },
                            "confidence": {
                              "type": "string",
                              "enum": [
                                "low",
                                "medium",
                                "high"
                              ]
                            }
                          },
                          "required": [
                            "field",
                            "before",
                            "after",
                            "evidence_urls",
                            "confidence"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "rejected_downgrades": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string",
                              "enum": [
                                "proposed_value_absent",
                                "lower_confidence",
                                "stale_evidence",
                                "contradictory_value_requires_review"
                              ]
                            },
                            "previous_value": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "proposed_value": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "previous_confidence": {
                              "type": "string",
                              "enum": [
                                "low",
                                "medium",
                                "high"
                              ]
                            },
                            "proposed_confidence": {
                              "type": "string",
                              "enum": [
                                "low",
                                "medium",
                                "high"
                              ]
                            }
                          },
                          "required": [
                            "field",
                            "reason",
                            "previous_value",
                            "proposed_value",
                            "previous_confidence",
                            "proposed_confidence"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "duration_ms": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "requested_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "started_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completed_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "refresh_id",
                      "person_id",
                      "status",
                      "outcome",
                      "changed_fields",
                      "acquisition_route",
                      "evidence_count",
                      "proposed_fields",
                      "applied_fields",
                      "rejected_downgrades",
                      "duration_ms",
                      "error",
                      "requested_at",
                      "started_at",
                      "completed_at"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": [
                          "unavailable"
                        ]
                      },
                      "reason": {
                        "type": "string",
                        "enum": [
                          "legacy_history_truncated"
                        ]
                      }
                    },
                    "required": [
                      "status",
                      "reason"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "person_id",
              "person",
              "operator_user_id",
              "operator_name",
              "role",
              "relationship_status",
              "notes",
              "is_primary",
              "created_at",
              "updated_at",
              "hydration"
            ],
            "additionalProperties": false
          }
        },
        "participants_truncated": {
          "type": "boolean"
        },
        "requirements": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "requirement_id": {
                "type": "string"
              },
              "category": {
                "type": "string",
                "enum": [
                  "technical",
                  "security",
                  "legal",
                  "procurement",
                  "commercial",
                  "staffing",
                  "implementation",
                  "data",
                  "success_criteria",
                  "other"
                ]
              },
              "title": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "open",
                  "in_progress",
                  "blocked",
                  "satisfied",
                  "dismissed"
                ]
              },
              "priority": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "urgent"
                ]
              },
              "owner_operator_user_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "due_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source_note_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "source_signal_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "completed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "requirement_id",
              "category",
              "title",
              "description",
              "status",
              "priority",
              "owner_operator_user_id",
              "due_at",
              "source_note_ids",
              "source_signal_ids",
              "created_at",
              "updated_at",
              "completed_at"
            ],
            "additionalProperties": false
          }
        },
        "tasks": {
          "type": "object",
          "properties": {
            "revision": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "open": {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "task_id": {
                        "type": "string"
                      },
                      "opportunity_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "open",
                          "in_progress",
                          "blocked",
                          "completed",
                          "dismissed"
                        ]
                      },
                      "assignee_operator_user_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "due_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completed_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_by_operator_user_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_requirement_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_signal_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "updated_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "task_id",
                      "opportunity_id",
                      "title",
                      "description",
                      "status",
                      "assignee_operator_user_id",
                      "due_at",
                      "completed_at",
                      "created_by_operator_user_id",
                      "source_requirement_id",
                      "source_signal_id",
                      "created_at",
                      "updated_at"
                    ],
                    "additionalProperties": false
                  }
                },
                "continue_cursor": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "has_more": {
                  "type": "boolean"
                },
                "truncated": {
                  "type": "boolean"
                }
              },
              "required": [
                "items",
                "continue_cursor",
                "has_more",
                "truncated"
              ],
              "additionalProperties": false
            },
            "recently_completed": {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "task_id": {
                        "type": "string"
                      },
                      "opportunity_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "open",
                          "in_progress",
                          "blocked",
                          "completed",
                          "dismissed"
                        ]
                      },
                      "assignee_operator_user_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "due_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completed_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_by_operator_user_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_requirement_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_signal_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "updated_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "task_id",
                      "opportunity_id",
                      "title",
                      "description",
                      "status",
                      "assignee_operator_user_id",
                      "due_at",
                      "completed_at",
                      "created_by_operator_user_id",
                      "source_requirement_id",
                      "source_signal_id",
                      "created_at",
                      "updated_at"
                    ],
                    "additionalProperties": false
                  }
                },
                "continue_cursor": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "has_more": {
                  "type": "boolean"
                },
                "truncated": {
                  "type": "boolean"
                }
              },
              "required": [
                "items",
                "continue_cursor",
                "has_more",
                "truncated"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "revision",
            "open",
            "recently_completed"
          ],
          "additionalProperties": false
        },
        "notes": {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "note_id": {
                    "type": "string"
                  },
                  "entity_type": {
                    "type": "string",
                    "enum": [
                      "company",
                      "person",
                      "opportunity"
                    ]
                  },
                  "entity_id": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "body_markdown": {
                    "type": "string"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "source_urls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "related_note_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "created_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "updated_at": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "note_id",
                  "entity_type",
                  "entity_id",
                  "title",
                  "body_markdown",
                  "tags",
                  "source_urls",
                  "related_note_ids",
                  "created_at",
                  "updated_at"
                ],
                "additionalProperties": false
              }
            },
            "truncated": {
              "type": "boolean"
            }
          },
          "required": [
            "items",
            "truncated"
          ],
          "additionalProperties": false
        },
        "activities": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "activity_id": {
                "type": "string"
              },
              "opportunity_id": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "created",
                  "stage_changed",
                  "status_changed",
                  "outcome_changed",
                  "archived",
                  "loss_reason_updated",
                  "booked_value_changed",
                  "owner_changed",
                  "attribution_assigned",
                  "attribution_replaced",
                  "attribution_cleared",
                  "participant_added",
                  "participant_updated",
                  "note_created",
                  "requirement_created",
                  "requirement_updated",
                  "task_created",
                  "task_updated",
                  "task_completed",
                  "search_attached",
                  "objective_attached",
                  "signal_observed",
                  "signal_promoted",
                  "signal_dismissed",
                  "mcp_write"
                ]
              },
              "summary": {
                "type": "string"
              },
              "actor_operator_user_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source": {
                "type": "string"
              },
              "related_entity_type": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "related_entity_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "payload": {},
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "activity_id",
              "opportunity_id",
              "type",
              "summary",
              "actor_operator_user_id",
              "source",
              "related_entity_type",
              "related_entity_id",
              "payload",
              "created_at"
            ],
            "additionalProperties": false
          }
        },
        "attached_searches": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "search_id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "target_mode": {
                "type": "string",
                "enum": [
                  "people_and_companies",
                  "people",
                  "companies"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "running",
                  "idle",
                  "paused",
                  "reconciling",
                  "complete",
                  "failed"
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "completed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "search_id",
              "label",
              "target_mode",
              "status",
              "created_at",
              "completed_at"
            ],
            "additionalProperties": false
          }
        },
        "related_campaigns": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "campaign_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "campaign_id",
              "name",
              "status"
            ],
            "additionalProperties": false
          }
        },
        "signals": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "signal_id": {
                "type": "string"
              },
              "target_type": {
                "type": "string",
                "enum": [
                  "company",
                  "person",
                  "opportunity"
                ]
              },
              "target_id": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "company_news",
                  "hiring_change",
                  "funding_or_finance",
                  "leadership_change",
                  "product_change",
                  "technology_signal",
                  "procurement_signal",
                  "stale_opportunity",
                  "missing_next_action",
                  "missing_stakeholder",
                  "requirement_risk",
                  "other"
                ]
              },
              "title": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "evidence_urls": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^https?:\\/\\/"
                }
              },
              "source_search_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source_run_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "confidence": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              },
              "observed_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "review_state": {
                "type": "string",
                "enum": [
                  "new",
                  "dismissed",
                  "attached",
                  "promoted_to_note",
                  "promoted_to_task",
                  "promoted_to_requirement"
                ]
              },
              "reviewed_by_operator_user_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reviewed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "opportunity_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "signal_id",
              "target_type",
              "target_id",
              "kind",
              "title",
              "summary",
              "evidence_urls",
              "source_search_id",
              "source_run_id",
              "confidence",
              "observed_at",
              "created_at",
              "review_state",
              "reviewed_by_operator_user_id",
              "reviewed_at",
              "opportunity_id"
            ],
            "additionalProperties": false
          }
        },
        "person_mentions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "mention_id": {
                "type": "string"
              },
              "opportunity_id": {
                "type": "string"
              },
              "note_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "mention_text": {
                "type": "string"
              },
              "title_hint": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "searching",
                  "resolved",
                  "ambiguous",
                  "failed"
                ]
              },
              "person_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "person": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "person_id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "current_title": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_company_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_company_name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_company_size_band": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_employment_source_claim": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "import"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "unverified"
                                ]
                              },
                              "reference_id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "source",
                              "status",
                              "reference_id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "current_title_source_claim": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "import"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "unverified"
                                ]
                              },
                              "reference_id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "source",
                              "status",
                              "reference_id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "location": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "country_code": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "about_summary": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_profile_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "profile_image_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_email": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_email_status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "unverified",
                              "verified",
                              "bounced",
                              "invalid",
                              "opted_out",
                              "stale",
                              "do_not_contact"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_email_source": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "manual",
                              "inbound_email",
                              "gmail_sync",
                              "provider",
                              "research_note",
                              "linkedin_profile",
                              "import"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_phone": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_phone_status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "unverified",
                              "verified",
                              "bounced",
                              "invalid",
                              "opted_out",
                              "stale",
                              "do_not_contact"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "primary_phone_source": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "manual",
                              "inbound_email",
                              "gmail_sync",
                              "provider",
                              "research_note",
                              "linkedin_profile",
                              "import"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "recent_match_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "recent_matches_truncated": {
                        "type": "boolean"
                      },
                      "latest_surfaced_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updated_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "last_observed_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "completeness": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "rich",
                              "partial",
                              "skeleton",
                              "needs_refresh"
                            ]
                          },
                          "missing_fields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "present_fields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "priority_missing_fields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "status",
                          "missing_fields",
                          "present_fields",
                          "priority_missing_fields"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "person_id",
                      "name",
                      "current_title",
                      "current_company_id",
                      "current_company_name",
                      "current_company_size_band",
                      "current_employment_source_claim",
                      "current_title_source_claim",
                      "location",
                      "country_code",
                      "about_summary",
                      "source_profile_url",
                      "profile_image_url",
                      "primary_email",
                      "primary_email_status",
                      "primary_email_source",
                      "primary_phone",
                      "primary_phone_status",
                      "primary_phone_source",
                      "recent_match_count",
                      "recent_matches_truncated",
                      "latest_surfaced_at",
                      "updated_at",
                      "last_observed_at",
                      "completeness"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "search_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "search": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "search_id": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "target_mode": {
                        "type": "string",
                        "enum": [
                          "people_and_companies",
                          "people",
                          "companies"
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "pending",
                          "running",
                          "idle",
                          "paused",
                          "reconciling",
                          "complete",
                          "failed"
                        ]
                      },
                      "created_at": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "completed_at": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "search_id",
                      "label",
                      "target_mode",
                      "status",
                      "created_at",
                      "completed_at"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "candidate_people": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "person_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "current_title": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "current_company_id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "current_company_name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "current_company_size_band": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "current_employment_source_claim": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "source": {
                              "type": "string",
                              "enum": [
                                "import"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "unverified"
                              ]
                            },
                            "reference_id": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "source",
                            "status",
                            "reference_id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "current_title_source_claim": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "source": {
                              "type": "string",
                              "enum": [
                                "import"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "unverified"
                              ]
                            },
                            "reference_id": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "source",
                            "status",
                            "reference_id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "location": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "country_code": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "about_summary": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "source_profile_url": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "profile_image_url": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "primary_email": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "primary_email_status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "unverified",
                            "verified",
                            "bounced",
                            "invalid",
                            "opted_out",
                            "stale",
                            "do_not_contact"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "primary_email_source": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "manual",
                            "inbound_email",
                            "gmail_sync",
                            "provider",
                            "research_note",
                            "linkedin_profile",
                            "import"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "primary_phone": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "primary_phone_status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "unverified",
                            "verified",
                            "bounced",
                            "invalid",
                            "opted_out",
                            "stale",
                            "do_not_contact"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "primary_phone_source": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "manual",
                            "inbound_email",
                            "gmail_sync",
                            "provider",
                            "research_note",
                            "linkedin_profile",
                            "import"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "recent_match_count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "recent_matches_truncated": {
                      "type": "boolean"
                    },
                    "latest_surfaced_at": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updated_at": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "last_observed_at": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "completeness": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "rich",
                            "partial",
                            "skeleton",
                            "needs_refresh"
                          ]
                        },
                        "missing_fields": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "present_fields": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "priority_missing_fields": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "status",
                        "missing_fields",
                        "present_fields",
                        "priority_missing_fields"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "person_id",
                    "name",
                    "current_title",
                    "current_company_id",
                    "current_company_name",
                    "current_company_size_band",
                    "current_employment_source_claim",
                    "current_title_source_claim",
                    "location",
                    "country_code",
                    "about_summary",
                    "source_profile_url",
                    "profile_image_url",
                    "primary_email",
                    "primary_email_status",
                    "primary_email_source",
                    "primary_phone",
                    "primary_phone_status",
                    "primary_phone_source",
                    "recent_match_count",
                    "recent_matches_truncated",
                    "latest_surfaced_at",
                    "updated_at",
                    "last_observed_at",
                    "completeness"
                  ],
                  "additionalProperties": false
                }
              },
              "error": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_by_operator_user_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "resolved_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "mention_id",
              "opportunity_id",
              "note_id",
              "mention_text",
              "title_hint",
              "status",
              "person_id",
              "person",
              "search_id",
              "search",
              "candidate_people",
              "error",
              "created_by_operator_user_id",
              "created_at",
              "updated_at",
              "resolved_at"
            ],
            "additionalProperties": false
          }
        },
        "coverage": {
          "type": "object",
          "properties": {
            "missing_primary_buyer": {
              "type": "boolean"
            },
            "missing_champion": {
              "type": "boolean"
            },
            "missing_open_requirement": {
              "type": "boolean"
            },
            "missing_next_action": {
              "type": "boolean"
            },
            "stale": {
              "type": "boolean"
            },
            "no_recent_update": {
              "type": "boolean"
            },
            "blocked_requirement_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "overdue_task_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "open_task_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "open_requirement_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "task_counts_truncated": {
              "type": "boolean"
            }
          },
          "required": [
            "missing_primary_buyer",
            "missing_champion",
            "missing_open_requirement",
            "missing_next_action",
            "stale",
            "no_recent_update",
            "blocked_requirement_count",
            "overdue_task_count",
            "open_task_count",
            "open_requirement_count",
            "task_counts_truncated"
          ],
          "additionalProperties": false
        },
        "engagement": {
          "type": "object",
          "properties": {
            "engagement_id": {
              "type": "string"
            },
            "opportunity_id": {
              "type": "string"
            },
            "company_id": {
              "type": "string"
            },
            "company_name": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "summary": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "owner_operator_user_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "owner_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_contact_person_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "primary_contact_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "estimated_spend_min": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "estimated_spend_max": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "estimated_spend_confidence": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "started_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "created_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "updated_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "completion_stage": {
              "type": "string",
              "enum": [
                "qualification",
                "scoping",
                "contracting"
              ]
            },
            "active_opportunity_id": {
              "type": "string"
            },
            "priority": {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high",
                "urgent"
              ]
            },
            "health": {
              "type": "string",
              "enum": [
                "on_track",
                "needs_attention",
                "blocked",
                "stale",
                "unknown"
              ]
            },
            "booked_value": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "NaN",
                    "Infinity",
                    "-Infinity"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_action": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_action_due_at": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_task_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_task_due_at": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "open_task_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "overdue_task_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "open_requirement_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "missing_critical_requirement_count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "blocked_requirement_count": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "activity_at": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "deliverable_count": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "delivered_deliverable_count": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "organization_doc_id": {
              "type": "string"
            },
            "estimated_spend": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "min": {
                      "type": "number",
                      "minimum": 0
                    },
                    "max": {
                      "type": "number",
                      "minimum": 0
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "USD"
                      ]
                    },
                    "period": {
                      "type": "string",
                      "enum": [
                        "one_time",
                        "monthly",
                        "annual"
                      ]
                    },
                    "confidence": {
                      "type": "string",
                      "enum": [
                        "low",
                        "medium",
                        "high"
                      ]
                    },
                    "basis": {
                      "type": "string"
                    },
                    "source_note_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "currency",
                    "confidence",
                    "basis",
                    "source_note_ids"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "opportunity_stage": {
              "type": "string",
              "enum": [
                "qualification",
                "scoping",
                "contracting"
              ]
            },
            "opportunity_outcome": {
              "type": "string",
              "enum": [
                "sold",
                "lost"
              ]
            }
          },
          "required": [
            "engagement_id",
            "opportunity_id",
            "company_id",
            "company_name",
            "name",
            "summary",
            "owner_operator_user_id",
            "owner_name",
            "primary_contact_person_id",
            "primary_contact_name",
            "estimated_spend_min",
            "estimated_spend_max",
            "estimated_spend_confidence",
            "started_at",
            "created_at",
            "updated_at",
            "completion_stage",
            "active_opportunity_id",
            "priority",
            "health",
            "booked_value",
            "next_action",
            "next_action_due_at",
            "next_task_title",
            "next_task_due_at",
            "open_task_count",
            "overdue_task_count",
            "open_requirement_count",
            "missing_critical_requirement_count",
            "blocked_requirement_count",
            "activity_at",
            "deliverable_count",
            "delivered_deliverable_count",
            "organization_doc_id",
            "estimated_spend",
            "opportunity_stage",
            "opportunity_outcome"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "opportunity",
        "company",
        "participants",
        "participants_truncated",
        "requirements",
        "tasks",
        "notes",
        "activities",
        "attached_searches",
        "related_campaigns",
        "signals",
        "person_mentions",
        "coverage",
        "engagement"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "engagement"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_person_research_notes

Return a bounded newest-first list of append-only research notes attached to a person.

people / read-only

Input schema
{
  "type": "object",
  "properties": {
    "person_id": {
      "type": "string",
      "pattern": "^\\S[\\s\\S]*\\S$|^\\S$|^$",
      "minLength": 1,
      "maxLength": 200
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "person_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "note_id": {
            "type": "string"
          },
          "entity_type": {
            "type": "string",
            "enum": [
              "company",
              "person",
              "opportunity"
            ]
          },
          "entity_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "body_markdown": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "source_urls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "related_note_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "created_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "updated_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "note_id",
          "entity_type",
          "entity_id",
          "title",
          "body_markdown",
          "tags",
          "source_urls",
          "related_note_ids",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "truncated": {
      "type": "boolean"
    }
  },
  "required": [
    "items",
    "truncated"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Resources

opportunities

Current SCRYU opportunity pipeline snapshot.

scryu://opportunities

active-engagements

Current bounded active delivery snapshot.

scryu://active-engagements

opportunity

SCRYU opportunity detail by public opportunity id.

scryu://opportunities/{opportunity_id}

company

SCRYU company detail by public company id.

scryu://companies/{company_id}

active-engagement

Active delivery detail by public engagement id.

scryu://active-engagements/{engagement_id}

active-engagement-deliverables

First bounded page of an engagement's deliverables.

scryu://active-engagements/{engagement_id}/deliverables