Record inventory lines
lca_record_inventoryRecord figures from a file already uploaded in Aevia, as lines for review. This connection cannot upload a file or create an inventory: pass inventory, an n<N> the user made in Aevia, with the base_version_seq lca_get shows. Reading it (lca_get, form='grid') and binding its lines need the user to allow dataset content for this connection in User settings → MCP Connector; until then a read and this result show only counts, and a binding is refused. A line names an anchor (a cell, or a range summed) or an expr over other lines, with no number; the server reads the value. Lines stay pending until the user confirms them, in Aevia only. A confirmed line binds as quantity: {inventory, line} in place of amount on lca_compose_assembly, lca_edit_assembly, engine_create_process and engine_edit_process only. A multi-product site adds each product's price line (line_price) and an allocation_method. After a corrected file, sync_inventory on either edit tool re-reads bound lines.
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": {
"workspace": "<workspace>",
"lines": "<lines>"
},
"name": "lca_record_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | The lines to record (at most 200 per call). A call records all of them or none: when any is refused, nothing is recorded and the refusal names each refused line. | |
| products | No | Every product the site made in the period, each with the line of its annual output. | |
| inventory | No | Record into this inventory, `n<N>`, which the user made in Aevia. | |
| workspace | Yes | Name of the workspace to work in, as `lca_get(kind='workspaces')` lists it (backticks optional). Named on every call: several conversations can share one connection, and each names its own workspace. The connection's default is often an empty sandbox rather than the user's work. | |
| base_version_seq | No | Existing inventory: the `version_seq` you read it at. A later one refuses the call (409). | |
| allocation_method | No | A site with several products: how its shared figures are split between them, recorded as a decision the user confirms in Aevia's review. The user chooses it: ask them. |