Compare assessments
lca_compare_assessmentsSave a comparison across 2–9 saved assessments. Each target is an a<N> ref (lca_get(kind='assessments') lists them); every lca_run_assessment already saved one. Two preconditions are enforced (400): all targets share one LCIA method (one method, not one name: each source has its own, so two sources' assessments are usually refused), and all are one product at one amount unless function states the function they all deliver. Differences in allocation or provider linking are not refused; they are returned as equivalence warnings alongside the result. The comparison is saved into the workspace named by workspace and returned as primary_ref (c<N>), which holds the full matrix. The matrix does not rank the targets; it reports each impact category separately. nw_set adds the targets' stored single scores for that set beside the matrix; every target must already carry it (lca_apply_nw_set). The assessment_interpretation skill (load_skill) documents comparison discipline.
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>",
"targets": "<targets>"
},
"name": "lca_compare_assessments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nw_set | No | Compare by the single score of this normalization/weighting set (its name, or a unique part of it); every target must carry it, see `lca_apply_nw_set`. A target missing it, or carrying a different copy, is refused with what to do. Omit for the characterized matrix only. | |
| phases | No | Read the comparison you save under these life-cycle phases: the backend sums each target's selected phases. A read, never stored — the saved comparison is the same with or without it, so to re-read an EXISTING comparison by phase use `lca_get(ref='c<N>', phases=…)` rather than comparing again. When not every part of every target is tagged, no value is marked lowest. Each value is a phase (production, distribution, use, end_of_life, beyond_boundary) or 'unassigned' (the parts no tag files). Omitted = the default total (every phase except beyond_boundary, plus unassigned). Refused, with the reason, when the result's phase rows are incomplete; a part nobody tagged counts only under 'unassigned'. | |
| targets | Yes | 2 to 9 saved-assessment refs to compare, e.g. ['a1', 'a2']. For more than 9, compare in groups that share one reference assessment. | |
| function | No | The function every target delivers, quantified — e.g. 'packaging for 1 L of beverage'. Needed when the targets are not the same product at the same amount: take it from the user's stated goal, or ask them. Saved with the comparison and shown wherever it is read. | |
| 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. |