# Jobs and workflows

## `list_job_candidates` {#list_job_candidates}


**List job candidates.** The people on a job. phase_status_id matches a phase id from list_workflows. candidate_id is what list_candidate_notes and create_candidate_note take.

| Access | Permission | Limit |
|---|---|---|
| Read | `jobs:read` | Reading |

| Argument | Type | Required | Description |
|---|---|---|---|
| `job` | string | yes | A job, such as jobs:abc123, from search_records or list_record_jobs. |
| `limit` | integer | no | 1 to 50, default 10. |
| `offset` | integer | no |  |

**Returns:** `candidates`, with [paging fields](https://docs.searchsoftware.nl/mcp/working-with-records.md#paging).

Each candidate has the person as `id` and the candidate row as `candidate_id`. `list_candidate_notes` and `create_candidate_note` take the `candidate_id`.


## `list_job_contacts` {#list_job_contacts}


**List job contacts.** The contacts on a job. contact_id is what update_job_contact takes.

| Access | Permission | Limit |
|---|---|---|
| Read | `jobs:read` | Reading |

| Argument | Type | Required | Description |
|---|---|---|---|
| `job` | string | yes | A job, such as jobs:abc123, from search_records or list_record_jobs. |
| `limit` | integer | no | 1 to 50, default 10. |
| `offset` | integer | no |  |

**Returns:** `contacts`, with [paging fields](https://docs.searchsoftware.nl/mcp/working-with-records.md#paging).


## `list_record_jobs` {#list_record_jobs}


**List jobs of a person or company.** The jobs a person is on, or a company's jobs. Needs a person or company ID.

| Access | Permission | Limit |
|---|---|---|
| Read | `companies:read` or `people:read` | Reading |

| Argument | Type | Required | Description |
|---|---|---|---|
| `record` | string | yes | A person or company, such as people:abc123. |
| `limit` | integer | no | 1 to 50, default 10. |
| `offset` | integer | no |  |

**Returns:** `jobs`, with [paging fields](https://docs.searchsoftware.nl/mcp/working-with-records.md#paging).


## `list_work_history` {#list_work_history}


**List work history.** Work history entries of a person or a company.

| Access | Permission | Limit |
|---|---|---|
| Read | `work_history:read` | Reading |

| Argument | Type | Required | Description |
|---|---|---|---|
| `company` | string | no | A company, such as companies:abc123. Left out when person is given. |
| `limit` | integer | no | 1 to 50, default 10. |
| `offset` | integer | no |  |
| `person` | string | no | A person, such as people:abc123. Left out when company is given. |

**Returns:** `work_history`, with [paging fields](https://docs.searchsoftware.nl/mcp/working-with-records.md#paging).


## `create_work_history` {#create_work_history}


**Create work history.** Adds a position to a person's work history: company (an existing company ID or just a name), job title, and whether it's current. Each call adds a new entry. Dates can't be stored.

| Access | Permission | Limit |
|---|---|---|
| Add | `work_history:write` | Changing |

| Argument | Type | Required | Description |
|---|---|---|---|
| `person` | string | yes | The person, such as people:abc123. |
| `company` | string | no | An existing company, such as companies:abc123. Left out when company_name is given. |
| `company_name` | string | no | A company name without a company record. Left out when company is given. |
| `is_current` | boolean | no | Whether this is the person's current position. |
| `is_primary_contact` | boolean | no | Whether the person is a primary contact at this company. |
| `work_title` | string | no | The job title in this position. |

**Returns:** `id`.

Give an existing company ID or just a company name, not both. Work history in Searchsoftware has no start or end dates, so the connector can't store them:

```json
{"person": "people:abc123", "company": "companies:def456", "work_title": "Lead Developer", "is_current": true}
```


## `update_work_history` {#update_work_history}


**Update work history.** Changes a work-history entry from list_work_history. Dates can't be stored.

| Access | Permission | Limit |
|---|---|---|
| Change | `work_history:write` | Changing |

| Argument | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | The work-history entry's ID, from list_work_history. |
| `company` | string | no | An existing company, such as companies:abc123. Left out when company_name is given. |
| `company_name` | string | no | A company name without a company record. Left out when company is given. |
| `is_current` | boolean | no |  |
| `is_primary_contact` | boolean | no |  |
| `work_title` | string | no |  |

**Returns:** `id`.

The ID comes from `list_work_history`. For example, when a position has ended:

```json
{"id": "w1a2b3", "is_current": false}
```


## `add_job_contact` {#add_job_contact}


**Add job contact.** Links a person to a job as a contact, such as the hiring manager. Each call adds a new link.

| Access | Permission | Limit |
|---|---|---|
| Add | `jobs:write` | Changing |

| Argument | Type | Required | Description |
|---|---|---|---|
| `job` | string | yes | The job, such as jobs:abc123. |
| `person` | string | yes | The contact person, such as people:abc123. |
| `is_primary` | boolean | no | Whether this is the job's primary contact. |
| `note` | string | no | A short note, such as the contact's role on this job. |

**Returns:** `id`.

```json
{"job": "jobs:abc123", "person": "people:def456", "is_primary": true, "note": "Hiring manager"}
```


## `update_job_contact` {#update_job_contact}


**Update job contact.** Changes a job contact from list_job_contacts: primary or not, and the note.

| Access | Permission | Limit |
|---|---|---|
| Change | `jobs:write` | Changing |

| Argument | Type | Required | Description |
|---|---|---|---|
| `contact_id` | string | yes | The contact's contact_id, from list_job_contacts. |
| `job` | string | yes | The job, such as jobs:abc123. |
| `is_primary` | boolean | no |  |
| `note` | string | no |  |

**Returns:** `id`.

`contact_id` comes from `list_job_contacts`:

```json
{"job": "jobs:abc123", "contact_id": "k1a2b3", "is_primary": true}
```


## `add_candidate` {#add_candidate}


**Add candidate.** Adds a person to a job as a candidate, in the job's starting phase unless you pass one. Says so if they're already on the job. Use set_candidate_phase to move them later. source_candidates adds several people at once and creates the ones that are missing.

| Access | Permission | Limit |
|---|---|---|
| Add | `jobs:write` | Changing |

| Argument | Type | Required | Description |
|---|---|---|---|
| `job` | string | yes | The job, such as jobs:abc123. |
| `person` | string | yes | The person to add, such as people:abc123. |
| `phase_status_id` | string | no | Starting phase ID from list_workflows, in the job's candidate workflow. Left out: the workflow's starting phase. |

**Returns:** `id`.

Without `phase_status_id` the person starts in the starting phase of the job's candidate workflow. Adding someone who is already on the job changes nothing and answers `"added": false`. When the workspace has the Candidate person type, the person gets it.

```json
{"job": "jobs:abc123", "person": "people:def456"}
```


## `source_candidates` {#source_candidates}


**Source candidates.** Adds up to 20 people to a job as candidates. Each person is looked up by LinkedIn profile and email first; someone already in the workspace is reused, a new person is created in the default people workflow, and each is added to the job with an optional note. A person who only matches by name comes back as needs_review. A later entry with an earlier entry's LinkedIn profile or email, or the same name with no LinkedIn URL or email, comes back as duplicate_in_batch. Running the same list twice adds nothing twice.

| Access | Permission | Limit |
|---|---|---|
| Add | `jobs:write`, `notes:write` or `people:write` | Changing |

| Argument | Type | Required | Description |
|---|---|---|---|
| `job` | string | yes | The job, such as jobs:abc123. |
| `people` | array | yes | 1 to 20 people. |
| `people[].name` | string | yes |  |
| `people[].city` | string | no |  |
| `people[].company_id` | string | no | A company record, such as companies:abc123. |
| `people[].company_name` | string | no | The employer's name, when there is no company record. |
| `people[].country_code` | string | no | Two letters, such as NL. |
| `people[].email_address` | string | no |  |
| `people[].force_create` | boolean | no | true creates a new person even though someone with the same name exists. |
| `people[].linkedin_url` | string | no | The person's LinkedIn profile URL. Used to find an existing person. |
| `people[].note` | string | no | A note for this candidate on this job. |
| `people[].person_id` | string | no | An existing person to use, such as people:abc123. For entries that came back as needs_review. |
| `people[].phone_number` | string | no |  |
| `people[].work_title` | string | no | Current job title. |
| `dry_run` | boolean | no | true reports what would happen and changes nothing. |
| `include_csv` | boolean | no | true adds the report as CSV text. |
| `phase_status_id` | string | no | Starting phase ID from list_workflows, in the job's candidate workflow. Left out: the workflow's starting phase. |

**Returns:** `csv`, `dry_run`, `id`, `results`, `summary`.


### Sourcing a shortlist {#sourcing-a-shortlist}


`source_candidates` takes a list of up to 20 people for one job. For each person it looks for someone already in Searchsoftware, first by LinkedIn profile and then by email address. A person it finds is reused as they are. A person it doesn't find is created in the default people workflow, with the LinkedIn profile saved as a bookmark. Each person is then added to the job, and the note, if there is one, goes on the candidate. Sending the same list again creates nothing and adds nobody twice.

LinkedIn profiles match however the URL is written: `https://www.linkedin.com/in/Jan-de-Vries-123/?utm_source=share` and `http://nl.linkedin.com/in/jan-de-vries-123` are the same person. A company page or a search URL isn't a profile, so that entry fails and the others go ahead.

1. Read the job with `get_records`, so you know what it asks for.
2. Send the list with `"dry_run": true`. Nothing changes; each entry says `would_create` or `would_match`.
3. Check the entries that came back as `needs_review`:
   - `same_name`: someone with exactly this name exists, but no LinkedIn profile or email address matched. Send the entry again with `person_id` set to one of the `possible_duplicates` if it is that person, or with `"force_create": true` if it is someone else.
   - `conflicting_matches`: the LinkedIn profile and the email address point at different people. Pick one with `person_id`.
   - `in_trash`: the person is in the trash. Restore them with `set_record_status` first.
4. Send the list without `dry_run`. Add `"include_csv": true` for the report as CSV text, one row per person, ready to open in a spreadsheet.

```json
{
  "job": "jobs:abc123",
  "dry_run": true,
  "people": [
    {"name": "Jan de Vries", "linkedin_url": "https://www.linkedin.com/in/jan-de-vries-123", "work_title": "Senior Engineer", "company_name": "ASML", "city": "Eindhoven", "country_code": "NL", "note": "Ten years of embedded C++."},
    {"name": "Anna Jansen", "email_address": "anna@example.com"}
  ]
}
```

Each entry in `results` has an `outcome`: `created`, `matched` (with `matched_by`: `linkedin`, `email` or `person_id`), `needs_review`, `duplicate_in_batch` (an earlier entry in the same list had the same LinkedIn profile or email address, or the same name when neither has a LinkedIn URL or email) or `failed` (with `error`). `candidate` says whether the person was `added` to the job or was `already_on_job`. A note is only added when the person was added in this call, so running a list twice doesn't add the note twice. `summary` counts the outcomes.

An email address that belongs to a person in the trash comes back as `needs_review` with reason `in_trash`, and an address shared by two people as `conflicting_matches`; neither creates a new person.

Each person counts as one call against your rate limit. A matching person you don't have access to is reported as a failure, and no second person is created.


## `set_workflow_phase` {#set_workflow_phase}


**Set workflow phase.** Moves a person, company or job to a workflow phase. Workflow and phase IDs come from list_workflows.

| Access | Permission | Limit |
|---|---|---|
| Change | `companies:write`, `jobs:write` or `people:write` | Changing |

| Argument | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | A person, company or job, such as people:abc123. |
| `phase_status_id` | string | yes | Phase ID from list_workflows. |
| `workflow_id` | string | yes | Workflow ID from list_workflows. |
| `note` | string | no |  |

**Returns:** `id`.


## `set_candidate_phase` {#set_candidate_phase}


**Set candidate phase.** Moves a candidate on a job to a workflow phase. Workflow and phase IDs come from list_workflows.

| Access | Permission | Limit |
|---|---|---|
| Change | `jobs:write` | Changing |

| Argument | Type | Required | Description |
|---|---|---|---|
| `job` | string | yes | The job, such as jobs:abc123. |
| `person` | string | yes | The candidate, such as people:abc123. |
| `phase_status_id` | string | yes | Phase ID from list_workflows. |
| `workflow_id` | string | yes | Workflow ID from list_workflows. |
| `note` | string | no |  |

**Returns:** `id`.

Workflow and phase IDs come from `list_workflows`:

```json
{"job": "jobs:abc123", "person": "people:def456", "workflow_id": "w1a2b3", "phase_status_id": "p1a2b3", "note": "Moved after the first interview."}
```


## `get_workflow_analytics` {#get_workflow_analytics}


**Get workflow analytics.** Statistics for one workflow over a date range: how many records entered, how many reached each phase, conversion between phases, time spent per phase, and how many are open or overdue. Covers the whole workspace. breakdown_by adds the same totals per owner, team, source or source group.

| Access | Permission | Limit |
|---|---|---|
| Read | `workflows:read` | Search |

| Argument | Type | Required | Description |
|---|---|---|---|
| `workflow_id` | string | yes | Workflow ID from list_workflows. |
| `breakdown_by` | string | no | owners, teams, sources or source_groups: adds the totals per value. |
| `from_date` | string | no | YYYY-MM-DD, given together with to_date. Both left out: the last 90 days. |
| `owner_ids` | array | no | Up to 100 user IDs from list_users: only records they own. |
| `source_ids` | array | no | Up to 100 source IDs from list_sources: only records from these sources. |
| `to_date` | string | no | YYYY-MM-DD, given together with from_date. |

**Returns:** one object with the fields above that apply.

The numbers cover the whole workspace, so accounts with restricted record access get an error instead. Leave out both dates for the last 90 days. Durations are in days with one decimal; a rate or duration without data is `null`. `breakdown_by` adds the same totals per owner, team, source or source group:

```json
{"workflow_id": "w1a2b3", "from_date": "2026-07-01", "to_date": "2026-09-30", "breakdown_by": "owners"}
```

While the statistics are still being prepared for a new workspace, the tool says so; try again a few minutes later.
