Get own company
well_get_own_companyGet which company the workspace itself is: the confirmed own-company anchor (anchor) and any detected companies not yet confirmed as it (candidates).
Use this whenever a question turns on "mine" versus "theirs" — my payables, my receivables, invoices I owe, what we billed — and then filter by the company_id this returns. Never decide which records are the workspace's own by comparing a company NAME: the same legal entity appears under several labels (a registered name, a trade name, a bank-issued label), so a name filter silently drops rows.
Returns anchor (company_id, registered_name, trade_name) or null when the workspace has not resolved one yet, and candidates (each with company_id, names, role, confidence_score, state).
anchor: null means the workspace has no confirmed own company. Say so plainly and do not promote a candidate to the anchor yourself — a candidate is a detection, not a decision, and confirming one is a user action.
Registry tax ids and registered addresses are deliberately not returned.
Call this directly — no other tool call is needed first. Both the anchor and the candidates are read from the same workspace this call is scoped to.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | No | Target workspace. This read reports one workspace's own data. Omit it and the token's primary workspace answers, which may not be the one you mean; the result names the workspace that did. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| anchor | Yes | ||
| success | Yes | ||
| candidates | Yes | ||
| resolved_workspace | No | The workspace that answered, when the caller named none and the token authorizes several. |