Link entity taxonomy
link-entity-taxonomyLink an entity to a taxonomy. Idempotent — returns the existing linkage if it already exists. CoA blocks auto-link at create time; use this to switch an entity's primary chart of accounts. Only the chart_of_accounts basis changes behavior: a reporting, mapping or schedule link records the association and nothing reads it. Statements render from the entity's reporting style (change-reporting-style), and custom statement rows come from a reporting extension of that style.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"basis": "chart_of_accounts",
"taxonomy_id": "tax_acme_coa"
},
"name": "link-entity-taxonomy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| basis | No | Linkage role: `chart_of_accounts` (the entity's CoA), `reporting` (a reporting standard), `mapping` (CoA→reporting rollup), `schedule` (schedule structure). Only `chart_of_accounts` is read; the others are recorded and do not change how statements render. | chart_of_accounts |
| entity_id | No | The entity to link, by id. Omit for the group parent. | |
| is_primary | No | Mark this as the primary linkage for the basis. False allows secondary attachments (e.g. parallel reporting standards). | |
| taxonomy_id | Yes | The taxonomy to link to. | |
| adoption_context | No | Why the entity is reporting under this taxonomy (e.g. 'voluntary', 'regulatory', 'lender_requirement'). | voluntary |