# Records

See [Working with records](https://docs.searchsoftware.nl/mcp/working-with-records.md) for IDs, fields, filters and paging.


## `list_objects` {#list_objects}


**List object types.** The record types this connection can read, with the plural slug other tools take as object.

| Access | Permission | Limit |
|---|---|---|
| Read | No single permission. Results cover what you've approved. | Reading |

This tool takes no arguments.

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


## `list_attributes` {#list_attributes}


**List attributes.** One object type's attributes: the field names and operators for filtering, the values of select fields, which fields can be written, and which can be a count_records group_by.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `object` | string | yes | Plural slug from list_objects, such as people. |

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


## `search_records` {#search_records}


**Search records.** Search one object type by keyword and filters. Filter field names and operators come from list_attributes; eq matches the whole value exactly, contains matches a word. near limits to a radius around a city or point, nearest first. document_query adds a keyword that must be in the CV or main document; at most 200 matching records are considered. count_records gives totals without rows.

| Access | Permission | Limit |
|---|---|---|
| Read | `companies:read`, `jobs:read`, `people:read` or `records:read` | Search |

| Argument | Type | Required | Description |
|---|---|---|---|
| `object` | string | yes | Plural slug from list_objects, such as people. |
| `document_query` | string | no | A keyword that must appear in the record's CV or main document. Combines with query, filters and near. |
| `fields` | array | no | Attributes to return, at most 30. Replaces the default set and may name contact details or image_url. |
| `filters` | array | no | Groups combine with AND. Field names and operators come from list_attributes. |
| `filters[].clauses` | array | yes |  |
| `filters[].clauses[].field` | string | yes | Attribute name from list_attributes. |
| `filters[].clauses[].op` | string | yes | Operator from the attribute's filter_ops. |
| `filters[].clauses[].value` | any | no | Left out for exists and not_exists. |
| `filters[].op` | string | yes | How the clauses combine: and, or, not. |
| `limit` | integer | no | 1 to 50, default 10. |
| `near` | object | no | People, companies and jobs within a distance of a place. Results come nearest first. |
| `near.radius_km` | number | yes | 1 to 500. |
| `near.lat` | number | no | Latitude, with lng, in place of a city name. |
| `near.lng` | number | no | Longitude, with lat. |
| `near.place` | string | no | A city name. Resolved from this workspace's own addresses. |
| `offset` | integer | no |  |
| `query` | string | no | Keywords. Left out, filters alone decide. |
| `sort` | array | no | At most one entry. |
| `sort[].direction` | string | yes | asc or desc. |
| `sort[].field` | string | yes |  |

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

For example, people in Amsterdam updated this year, newest first. Field names and operators come from `list_attributes`, so yours may differ:

```json
{
  "object": "people",
  "filters": [{
    "op": "and",
    "clauses": [
      {"field": "city", "op": "eq", "value": "Amsterdam"},
      {"field": "updated_at", "op": "gte", "value": "2026-01-01"}
    ]
  }],
  "sort": [{"field": "updated_at", "direction": "desc"}]
}
```

`city`, `state` and `country_code` come from the record's primary address; a second address doesn't count. `state` is the address's region (province or state). `eq` matches the whole value exactly and `contains` matches a word, so `city eq "Amsterdam"` doesn't match a street called Amsterdamseweg. A person's city, region and country are personal details: they're only returned when `fields` names them, but you can always filter on them.

A company can be found by one of its aliases. `query` matches aliases as well as the name, and the `alias` attribute matches one alias exactly:

```json
{"object": "companies", "filters": [{"op": "and", "clauses": [
  {"field": "city", "op": "eq", "value": "Amsterdam"},
  {"field": "alias", "op": "contains_exact", "value": "KLM"}
]}]}
```

Jobs in one workflow phase, with status Normal, in Rotterdam:

```json
{"object": "jobs", "filters": [{"op": "and", "clauses": [
  {"field": "workflow_phase_status", "op": "eq", "value": "Sourcing"},
  {"field": "status", "op": "eq", "value": "normal"},
  {"field": "city", "op": "eq", "value": "Rotterdam"}
]}]}
```

`near` limits people, companies and jobs to a radius, from 1 to 500 km, around a city or a point. Results come nearest first unless you give `sort`. A city name is looked up in your own workspace's addresses. If none of them are in that city, the connector asks for `lat` and `lng` instead. If the lookup itself fails, try again or pass `lat` and `lng`. Only the primary address counts. An address that has no coordinates is placed at the centre of its city. A person's `distance_km` is only returned when `fields` names `address`, `city` or `distance_km`.

`document_query` adds a keyword that must appear in the record's document text: a person's parsed CV, or the main document of a company or job. It combines with `query`, `filters` and `near`. At most 200 matching records are considered; `document_matches_truncated: true` means there were more, so narrow the keyword or add filters. For example, men within 40 km of Amsterdam whose CV mentions AutoCAD:

```json
{
  "object": "people",
  "near": {"place": "Amsterdam", "radius_km": 40},
  "document_query": "AutoCAD",
  "filters": [{"op": "and", "clauses": [{"field": "gender", "op": "eq", "value": "male"}]}],
  "fields": ["name", "current_position", "city", "distance_km"]
}
```

Only the parsed CV and the main document are searched, not every attached file. For a company or job, the main document's text is only searched when the workspace allows AI apps to read document text; otherwise the connector says it is turned off.


## `semantic_search_records` {#semantic_search_records}


**Semantic search.** Search one object type by meaning, for questions keywords miss. Returns matching passages with each record. text mode matches exact words; documents_only limits matching to CV and main-document text. The workspace has a setting that allows document text.

| Access | Permission | Limit |
|---|---|---|
| Read | `companies:read`, `jobs:read`, `people:read` or `records:read` | Semantic search |

| Argument | Type | Required | Description |
|---|---|---|---|
| `object` | string | yes | Plural slug from list_objects, such as people. |
| `query` | string | yes | What to look for. Natural language for semantic and hybrid; exact words for text. |
| `documents_only` | boolean | no | true searches only document text: parsed CVs for people, the main document for companies and jobs. |
| `fields` | array | no | Attributes to return, at most 30. Replaces the default set and may name contact details or image_url. |
| `filters` | array | no | Groups combine with AND. Field names and operators come from list_attributes. |
| `filters[].clauses` | array | yes |  |
| `filters[].clauses[].field` | string | yes | Attribute name from list_attributes. |
| `filters[].clauses[].op` | string | yes | Operator from the attribute's filter_ops. |
| `filters[].clauses[].value` | any | no | Left out for exists and not_exists. |
| `filters[].op` | string | yes | How the clauses combine: and, or, not. |
| `limit` | integer | no | 1 to 20, default 5. |
| `mode` | string | no | semantic (default), hybrid, or text for exact keyword matching. |

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

`mode: "text"` matches exact words instead of meaning, and `documents_only: true` limits the search to document text. Both take the same `filters` as `search_records`:

```json
{"object": "people", "query": "AutoCAD", "mode": "text", "documents_only": true,
 "filters": [{"op": "and", "clauses": [{"field": "gender", "op": "eq", "value": "male"}]}]}
```


## `list_records` {#list_records}


**List records.** One object type's records, newest first by default.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `object` | string | yes | Plural slug from list_objects, such as people. |
| `fields` | array | no | Attributes to return, at most 30. Replaces the default set and may name contact details or image_url. |
| `limit` | integer | no | 1 to 50, default 10. |
| `offset` | integer | no |  |
| `sort_order` | string | no | asc or desc, by creation date. |

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


## `get_records` {#get_records}


**Get records.** Up to 25 records of one object type by ID.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `ids` | array | yes | 1 to 25 full IDs of this object type, such as people:abc123. |
| `object` | string | yes | Plural slug from list_objects, such as people. |
| `fields` | array | no | Attributes to return, at most 30. Replaces the default set and may name contact details or image_url. |

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

For example, with `fields` naming an email address, which the default set leaves out:

```json
{"object": "people", "ids": ["people:abc123", "people:def456"], "fields": ["name", "email_address"]}
```


## `create_record` {#create_record}


**Create record.** Creates a person, company, job or custom record. Creates a new record on each call.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `object` | string | yes | Plural slug from list_objects, such as people. |
| `values` | object | yes | Field values. name is required, and company_id too for jobs. Writable fields come from list_attributes (creatable), with custom fields inside custom_fields. |

**Returns:** `id`.

Each call creates a new record, so check first that it doesn't exist:

```json
{"object": "companies", "values": {"name": "Acme BV"}}
```


## `update_record` {#update_record}


**Update record.** Changes a record's name and custom fields, and a person's gender. Email and phone go through add_contact_detail, addresses through update_location.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | The record, such as people:abc123. |
| `values` | object | yes | name and custom_fields; for people also gender (male, female, other, or an empty string to clear it). |

**Returns:** `id`.

For example, with field names from `list_attributes`:

```json
{"id": "companies:abc123", "values": {"name": "Acme Holding BV"}}
```

A person's gender is `male`, `female`, `other`, or `""` to clear it. Gender exists on people only:

```json
{"id": "people:abc123", "values": {"gender": "male"}}
```


## `set_record_status` {#set_record_status}


**Set record status.** Moves a person, company or job to the trash (delete) or restores it (normal). A trashed record leaves every list and stays restorable. Nothing is removed for good.

| 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. |
| `status` | string | yes | normal or delete. delete moves the record to the trash; normal restores it. |

**Returns:** `id`.

People, companies and jobs only. `delete` moves the record to the trash: it leaves every list, keeps all its data and can be restored with `normal`. Records can't be removed for good from an AI app. Asking for the state a record is already in changes nothing and answers `changed: false`:

```json
{"id": "companies:abc123", "status": "delete"}
```


## Bulk updates {#bulk-updates}


One change for many people, companies or jobs at once: move them to the trash or back, to a workflow phase, to another assignee, or (people only) to another GDPR status. It takes two steps, so you see the whole change before anything happens.

1. `preview_bulk_update` selects the records, with the same search as `search_records` or a list of IDs, and stores them in a plan. Nothing changes yet. It answers the number of records and ten of them as a sample.
2. After you say yes, `apply_bulk_update` changes the plan's records, 25 per call, until `remaining` is 0. It repeats the number from the preview, so a plan can't grow between the preview and the yes.

For example, "move everyone in the Declined phase to the trash":

```json
{"object": "people", "filters": [{"op": "and", "clauses": [{"field": "workflow_phase_status", "op": "eq", "value": "Declined"}]}], "change": {"kind": "status", "status": "delete"}}
```

The preview answers `{"plan_id": "k3f9q2", "total": 412, "sample": [...]}`; then, after you say yes:

```json
{"plan_id": "k3f9q2", "confirm_total": 412}
```

The trash is not permanent deletion: trashed records keep their data and come back with the opposite plan (`status` `normal`, with a `status eq delete` filter). A plan holds at most 1,000 records; with more matches it says `capped: true`, and a new preview after the first plan picks up the rest. A selection with `document_query` covers at most 200 matching records: when the keyword matches more, the preview is refused, so add filters or use a narrower keyword. A plan lapses 30 minutes after the preview if it isn't applied. Records that changed since the preview are checked again and reported as skipped (`not_found`, `unchanged`, `in_trash`, `gdpr_locked`) or failed, never changed blindly.


## `preview_bulk_update` {#preview_bulk_update}


**Preview bulk update.** Selects records by search or by ID and prepares one change for all of them. Nothing changes yet. Returns the number of records, a sample and a plan_id. A plan covers at most 1000 records and lapses after 30 minutes.

| Access | Permission | Limit |
|---|---|---|
| Read | `companies:write`, `jobs:write` or `people:write` | Search |

| Argument | Type | Required | Description |
|---|---|---|---|
| `change` | object | yes |  |
| `change.kind` | string | yes | status, workflow_phase, assignee, or gdpr_status (Searchsoftware only). |
| `change.note` | string | no |  |
| `change.phase_status_id` | string | no |  |
| `change.status` | string | no | For status: normal or delete (delete is the trash). For gdpr_status: permok, permreq, permno or novalue. |
| `change.user_id` | string | no | For assignee: a user ID from list_users. Left out, the records are unassigned. |
| `change.workflow_id` | string | no | For workflow_phase: IDs from list_workflows. |
| `object` | string | yes | people, companies or jobs. |
| `document_query` | string | no | A keyword that must be in the CV or main document, as in search_records. At most 200 matching records; more is refused. |
| `filters` | array | no | The same filter groups as search_records. |
| `filters[].clauses` | array | yes |  |
| `filters[].clauses[].field` | string | yes | Attribute name from list_attributes. |
| `filters[].clauses[].op` | string | yes | Operator from the attribute's filter_ops. |
| `filters[].clauses[].value` | any | no | Left out for exists and not_exists. |
| `filters[].op` | string | yes | How the clauses combine: and, or, not. |
| `near` | object | no | A radius around a place, as in search_records. |
| `near.radius_km` | number | yes | 1 to 500. |
| `near.lat` | number | no | Latitude, with lng, in place of a city name. |
| `near.lng` | number | no | Longitude, with lat. |
| `near.place` | string | no | A city name. Resolved from this workspace's own addresses. |
| `query` | string | no | Keywords, as in search_records. |
| `records` | array | no | Explicit record IDs, such as people:abc123, in place of a search. Up to 1000. |

**Returns:** `plan_id`, `remaining`, `status`, `total`.


## `apply_bulk_update` {#apply_bulk_update}


**Apply bulk update.** Applies a prepared plan to its next 25 records and reports what succeeded, was skipped or failed. Call it again while remaining is above 0. confirm_total is the total the preview returned. Status delete moves records to the trash, where they stay restorable.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `confirm_total` | integer | yes | The total that preview_bulk_update returned. |
| `plan_id` | string | yes | From preview_bulk_update. |

**Returns:** `id`.


## `get_bulk_update` {#get_bulk_update}


**Get bulk update.** The state and results of a bulk update plan.

| Access | Permission | Limit |
|---|---|---|
| Read | `companies:write`, `jobs:write` or `people:write` | Reading |

| Argument | Type | Required | Description |
|---|---|---|---|
| `plan_id` | string | yes | From preview_bulk_update. |
| `include_results` | boolean | no | true adds the skipped and failed records. |

**Returns:** `plan_id`, `remaining`, `status`, `total`.


## `cancel_bulk_update` {#cancel_bulk_update}


**Cancel bulk update.** Stops a bulk update plan. Records already changed stay changed.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `plan_id` | string | yes | From preview_bulk_update. |

**Returns:** `id`.


## `list_record_types` {#list_record_types}


**List record types.** The types a person, company, job or custom record can have, such as Candidate or Client. set_record_types takes their id or string_id.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `object` | string | yes | Plural slug from list_objects, such as people. |

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


## `assign_record` {#assign_record}


**Assign record.** Assigns a record (person, company, job or custom record) to a user from list_users, or unassigns it with null. The user is notified.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `record` | string | yes | Any record, such as people:abc123 or invoices:abc123. |
| `user_id` | string | no | A user ID from list_users, or null to unassign. |

**Returns:** `id`.

Works for people, companies, jobs and custom records. User IDs come from `list_users`; `null` unassigns. The user you assign gets a notification:

```json
{"record": "companies:abc123", "user_id": "u1a2b3"}
```


## `set_record_types` {#set_record_types}


**Set record types.** Adds or removes types on a record, such as Candidate or Client. Type IDs come from list_record_types. Types not mentioned stay as they are.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `record` | string | yes | Any record, such as people:abc123 or invoices:abc123. |
| `add` | array | no | Types to add: an id or string_id from list_record_types. |
| `remove` | array | no | Types to remove: an id or string_id from list_record_types. |

**Returns:** `id`.

Works for people, companies, jobs and custom records. Give `add`, `remove` or both, with an `id` or `string_id` from `list_record_types`. Types you don't mention stay on the record:

```json
{"record": "people:abc123", "add": ["contact"]}
```


## `set_source` {#set_source}


**Set source.** Sets where a person, company or job came from. Source IDs come from list_sources. Replaces the current source.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `record` | string | yes | A person, company or job, such as people:abc123. |
| `source_id` | string | yes | A source ID from list_sources. |

**Returns:** `id`.

People, companies and jobs only. Source IDs come from `list_sources`:

```json
{"record": "people:abc123", "source_id": "s1a2b3"}
```


## `add_alias` {#add_alias}


**Add alias.** Adds another name for a person, company or job, so searches find it under that name too. Duplicates are refused. list_aliases shows the ones a record already has. To change an alias, remove it with remove_alias and add the new one.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `alias` | string | yes | The other name, up to 255 characters. |
| `record` | string | yes | A person, company or job, such as companies:abc123. |

**Returns:** `id`.

People, companies and jobs only. An alias that already exists on the record, in any letter case, is refused:

```json
{"record": "companies:abc123", "alias": "Acme Holding"}
```


## `list_aliases` {#list_aliases}


**List aliases.** Other names a person, company or job is known by.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `record` | string | yes | A person, company or job, such as companies:abc123. |

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


## `remove_alias` {#remove_alias}


**Remove alias.** Removes one alias from a person, company or job. The record itself is untouched. Alias IDs come from list_aliases.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `alias_id` | string | yes | Alias ID from list_aliases. |
| `record` | string | yes | A person, company or job, such as companies:abc123. |

**Returns:** `id`.

People, companies and jobs only. An alias can't be edited: to change one, remove it and add the new one. The record itself stays as it is:

```json
{"record": "companies:abc123", "alias_id": "al1b2c3"}
```


## `list_locations` {#list_locations}


**List locations.** Addresses of a person, company or job. The primary one is marked.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `record` | string | yes | A person, company or job, such as companies:abc123. |

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

People, companies and jobs only. Asking for a record's locations returns its full addresses, including a person's home address.


## `add_location` {#add_location}


**Add location.** Adds an address to a person, company or job. Each call adds a new location.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `record` | string | yes | A person, company or job, such as companies:abc123. |
| `city` | string | no |  |
| `country` | string | no |  |
| `country_code` | string | no | Two-letter ISO country code, such as NL. |
| `is_primary` | boolean | no | Whether this is the record's main address. Left out, the first location becomes the main one. |
| `state` | string | no | State, province or region. |
| `street` | string | no | Street and house number. |
| `zip` | string | no | Postal code. |

**Returns:** `id`.

Give at least one of `street`, `city`, `zip` or `country`. Without `is_primary`, the first location a record gets becomes its main address:

```json
{"record": "companies:abc123", "street": "Coolsingel 1", "city": "Rotterdam", "country_code": "NL"}
```


## `update_location` {#update_location}


**Update location.** Changes a location from list_locations. is_primary true makes it the main address.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `location_id` | string | yes | The location's id from list_locations. |
| `record` | string | yes | A person, company or job, such as companies:abc123. |
| `city` | string | no |  |
| `country` | string | no |  |
| `country_code` | string | no | Two-letter ISO country code, such as NL. |
| `is_primary` | boolean | no | true makes this the record's main address. |
| `state` | string | no | State, province or region. |
| `street` | string | no | Street and house number. |
| `zip` | string | no | Postal code. |

**Returns:** `id`.

`is_primary: true` makes a location the main address; the previous one stops being the main one. Locations can't be deleted from an AI app.


## `list_contact_details` {#list_contact_details}


**List contact details.** Email addresses and phone numbers of a person or company. The primary of each is marked.

| 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. |

**Returns:** `email_addresses`, `id`, `phone_numbers`.

People and companies only. Asking for a record's contact details returns all its email addresses and phone numbers, with the main one of each marked.


## `add_contact_detail` {#add_contact_detail}


**Add contact detail.** Adds an email address or phone number to a person or company. With is_primary it becomes the main one and the previous main one is kept as a secondary. A value the record already has is not added twice.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `kind` | string | yes | email or phone. |
| `record` | string | yes | A person or company, such as people:abc123. |
| `value` | string | yes | The email address or phone number. |
| `is_primary` | boolean | no | true makes it the main one; the previous main one stays as a secondary. |

**Returns:** `id`.

`kind` is `email` or `phone`. To change someone's email, add the new one with `is_primary: true`: it becomes the main address, and the old one stays on the record as a secondary one. A value the record already has isn't added again. An email address that belongs to another person is refused:

```json
{"record": "people:abc123", "kind": "email", "value": "anna@new.example", "is_primary": true}
```


## `set_primary_contact_detail` {#set_primary_contact_detail}


**Set primary contact detail.** Makes an existing email address or phone number the main one. IDs come from list_contact_details.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | The email address or phone number ID from list_contact_details. |
| `kind` | string | yes | email or phone. |
| `record` | string | yes | A person or company, such as people:abc123. |

**Returns:** `id`.

IDs come from `list_contact_details`. Email addresses and phone numbers can't be deleted from an AI app.


## `set_gdpr_status` {#set_gdpr_status}


**Set GDPR status.** Sets a person's GDPR status: permok (permission granted), permreq (requested), permno (denied) or novalue. A person on permno stays there. The workspace has a setting that switches this tool on.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `person` | string | yes | The person, such as people:abc123. |
| `status` | string | yes | permok (permission granted), permreq (requested), permno (denied) or novalue. |

**Returns:** `id`.

`permok` is permission granted, `permreq` permission requested, `permno` permission denied and `novalue` no status. The change date is set to today, and the retention period counts from there. A person on `permno` stays there.

A workspace manager has to turn this on first: **Settings → OAuth apps → AI connections → Let AI apps change GDPR status**. It's off by default. While it's off, the tool answers "Changing GDPR status from AI apps is off for this workspace":

```json
{"person": "people:abc123", "status": "permok"}
```


## `list_bookmarks` {#list_bookmarks}


**List bookmarks.** Web links saved on a person, company or job, each with a title and comment.

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

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

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


## `add_bookmark` {#add_bookmark}


**Add bookmark.** Saves a web link on a person, company or job. Each call adds a new bookmark.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `record` | string | yes | A person, company or job, such as people:abc123. |
| `url` | string | yes | An http or https address, up to 2000 characters. |
| `comment` | string | no |  |
| `title` | string | no |  |

**Returns:** `id`.

People, companies and jobs only. The connector never opens the link; it stores it for you to open:

```json
{"record": "people:abc123", "url": "https://example.com/article", "title": "Interview"}
```


## `upload_file` {#upload_file}


**Upload file.** Attaches a file to a record: a person, company, job or custom record. Each call adds a new file. In ChatGPT, pass the user's attached file as `file`. Otherwise pass text you wrote as `content_text` with a `file_name` such as summary.md, or small binary content as `content_base64`. Set `primary_document` to make it the record's main document, such as a CV. The returned id works with get_file_link.

| Access | Permission | Limit |
|---|---|---|
| Add | `companies:write`, `jobs:write`, `people:write` or `records:write` | Uploading |

| Argument | Type | Required | Description |
|---|---|---|---|
| `record` | string | yes | The record, such as people:abc123 or invoices:xyz789. |
| `content_base64` | string | no | Small binary content, base64-encoded. At most 512 KB decoded. Needs file_name. |
| `content_text` | string | no | Text to save as a file, such as notes, a summary, CSV or JSON. At most 512 KB. Needs file_name ending in .txt, .md, .csv, .tsv or .json. |
| `file` | object | no | ChatGPT: the file the user attached. |
| `file.download_url` | string | yes |  |
| `file.file_id` | string | yes |  |
| `file.file_name` | string | no |  |
| `file.mime_type` | string | no |  |
| `file_name` | string | no | The file's name with its extension, such as summary.md. Required with content_text and content_base64; with file it replaces the attached file's name. |
| `primary_document` | boolean | no | true makes the file the record's main document, such as a CV. Default false. |

**Returns:** `file_name`, `id`, `mime`, `primary_document`, `record`, `size`.

Works for people, companies, jobs and custom records. Each call adds a new file. How the file gets to the tool depends on the app:

| App | Source | Limit |
|---|---|---|
| ChatGPT | `file`: a file you attached in the chat | 20 MB |
| Any app | `content_text` with a `file_name` ending in `.txt`, `.md`, `.csv`, `.tsv` or `.json`: text the AI wrote | 512 KB |
| Any app | `content_base64` with a `file_name`: small binary content | 512 KB |

Claude, Claude Code and Codex can't hand over a file you attached, so they can upload text the AI writes and small files only. HTML, SVG, JavaScript and XML files can't be uploaded through the connector. Upload those in the web app.

```json
{"record": "people:abc123", "content_text": "# Call summary\n...", "file_name": "summary.md"}
```


## `upload_image` {#upload_image}


**Upload image.** Attaches a PNG, JPEG, GIF or WebP image to a record: a person, company, job or custom record. Each call adds a new image. In ChatGPT, pass the user's attached image as `file`; otherwise pass `content_base64`. Set `profile_picture` to show it as the record's picture.

| Access | Permission | Limit |
|---|---|---|
| Add | `companies:write`, `jobs:write`, `people:write` or `records:write` | Uploading |

| Argument | Type | Required | Description |
|---|---|---|---|
| `record` | string | yes | The record, such as companies:abc123 or invoices:xyz789. |
| `content_base64` | string | no | A small PNG, JPEG, GIF or WebP image, base64-encoded. At most 512 KB decoded. Needs file_name. |
| `file` | object | no | ChatGPT: the file the user attached. |
| `file.download_url` | string | yes |  |
| `file.file_id` | string | yes |  |
| `file.file_name` | string | no |  |
| `file.mime_type` | string | no |  |
| `file_name` | string | no | The image's name with its extension, such as logo.png. Required with content_base64; with file it replaces the attached image's name. |
| `profile_picture` | boolean | no | true shows the image as the record's picture. Default false. |

**Returns:** `file_name`, `id`, `mime`, `profile_picture`, `record`, `size`.

PNG, JPEG, GIF and WebP only, at most 10 MB from ChatGPT or 512 KB as `content_base64`. `profile_picture` makes it the record's picture. The previous picture stays linked, so it can be chosen again in the web app.


## `list_files` {#list_files}


**List files.** Files attached to a record, such as CVs and documents: name, type, size and whether it is the record's main document. Needs a record ID from a search tool. get_file_link gives the person a download link; get_document_text reads a file's text.

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

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

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

Works for people, companies, jobs and custom records, and needs only the record's read permission. It returns each file's name, type and size, and `is_primary` for the record's main document (usually the CV). It never returns a file's contents.

```json
{"record": "people:abc123", "limit": 10}
```


## `get_file_link` {#get_file_link}


**Get a file download link.** A download link for one file, valid for 10 minutes, for the person to open in a browser. The link gives no access to the file's contents, which stay unread. Needs a file id from list_files or upload_file.

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

| Argument | Type | Required | Description |
|---|---|---|---|
| `file_id` | string | yes | The file's id from list_files or upload_file. Not a record ID. |

**Returns:** `expires_at`, `file_id`, `filename`, `mime`, `size`, `url`.

Gives a link that downloads the file in a browser, without signing in, for 10 minutes. The link can be opened more than once until then. Each time it's opened, Searchsoftware checks again that you can still see the file and the record it belongs to. Once you disconnect the app, or lose access to the record, the link stops working.

The AI never receives the file itself, only its name, type, size and the link. It can't read or summarise a file through this tool. `get_document_text` can, if your workspace allows it.

"Send me Anna's CV" works like this: `search_records` finds Anna, `list_files` lists her files, and `get_file_link` gives the link for the CV:

```json
{"file_id": "xYz123Ab"}
```

The id from `upload_file` works too.


## `get_document_text` {#get_document_text}


**Read a document's text.** The plain text of a record's main document, such as a CV, or of another file on the record from list_files. Long documents come in parts: next_offset continues where the text stopped. Only available when the workspace allows AI apps to read document text.

| Access | Permission | Limit |
|---|---|---|
| Read | `companies:read`, `files:read`, `jobs:read`, `people:read` or `records:read` | Reading |

| Argument | Type | Required | Description |
|---|---|---|---|
| `record` | string | yes | The record, such as people:abc123 or invoices:xyz789. |
| `file_id` | string | no | Optional: another file on the same record, from list_files. Defaults to the record's main document. |
| `max_chars` | integer | no | 1 to 20000, default 20000. |
| `offset` | integer | no | Character offset to continue from, from next_offset. Default 0. |

**Returns:** `file_id`, `filename`, `is_primary`, `mime`, `offset`, `text`, `total_chars`, with [paging fields](https://docs.searchsoftware.nl/mcp/working-with-records.md#paging).

Reads the text of a record's main document, usually a CV, so the AI can summarise or compare it. With `file_id` from `list_files`, it reads another file on the same record. It needs the record's read permission and `files:read`.

A workspace manager has to turn this on first: **Settings → OAuth apps → AI connections → Let AI apps read document text**. It's off by default. While it's off, the tool answers "Reading document text is turned off for this workspace", and no text leaves Searchsoftware. When it's on, the text is sent to the AI vendor as part of the conversation and kept under their terms.

"Summarise Anna's CV" works like this: `search_records` finds Anna, then `get_document_text` reads her main document:

```json
{"record": "people:abc123"}
```

Long documents come in parts of at most 20,000 characters. `next_offset` says where the next part starts, and is `null` at the end:

```json
{"record": "people:abc123", "offset": 20000}
```

A record without a main document, or a scanned file without readable text, gives an error that says so.
