Find Or Create Organization
find_or_create_organizationFinds an organization by external reference, domain, or name, or creates it when absent, returning its ID without duplicates and filling only missing details.
Instructions
Find an organization, or create it when this workspace does not hold it yet.
Call it whenever a company comes up that you may record or act on: it is how you get an
organization's id without making a duplicate. It matches by external reference, then
domain, then name, and a match fills only the values the organization lacks, never
overwriting one, so call it once with everything you know. To change a value it already
holds use update_organization; for a list of more than a few companies use
import_organizations. Matching a discovered lookalike promotes it to active.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "find_or_create_organization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The company's name (required). | |
| domain | No | Its web domain, e.g. "acme.com"; a URL is reduced to its domain. The strongest match key after an external reference. | |
| fields | No | Custom field values by key, e.g. {"fit": "strong"}; list_fields lists the keys. A match keeps the values it holds and takes only the keys it lacks. | |
| region | No | Where it is based or operates (open text, e.g. "EMEA"). | |
| source | No | Where you learned of it (open text, e.g. "research", "manual", "import"). | |
| website | No | Its website URL. | |
| industry | No | Its industry in your own words (open text, e.g. "Logistics software"). | |
| fields_by | No | Who is setting these fields: an agent, a run, or a person. | |
| external_refs | No | What other systems call this record, as opaque URIs (e.g. "crm://people/123", or the source's own record URL). One a record here already holds is the match, ahead of every other key; one held by another record is refused as a conflict, never moved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||