Skip to main content
Glama

Build product system (bill of quantities)

lca_compose_assembly

Build and save a bill of quantities of a source's datasets, on any source. All members, from one source, with amounts, in one call. Structure only; no LCIA. Saved in the Aevia workspace, not the database, so read-only sources work too. The assembled product is the functional unit; assessed, each member counts its full upstream where the source solves, else its published value, for the declared boundary (declared_phases), by member. It takes inputs (flat) or stages (a DAG of life-cycle stages), not both. If valid it is saved and system_ref returned for lca_run_assessment; if invalid, nothing is saved and errors[], missing_required[], warnings[] say why; resend the complete system. dry_run: true validates without saving. A tool error, not an invalid result, means the source is unavailable. Members are p<N> refs; UUIDs are not accepted. lca_compose_linked builds explicit supply edges instead. The product_system_authoring skill (load_skill) documents build order and common failures.

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>",
      "title": "<title>",
      "output_name": "<output_name>"
    },
    "name": "lca_compose_assembly"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesName for the assembly, e.g. 'Wooden house assembly, 100 m²'.
inputsNoFLAT bill of quantities: one entry per member. Use for a single cradle-to-gate group of parts with no phases to separate. If the system spans life-cycle phases (materials/transport/use/end-of-life) or is a comparison, prefer `stages` instead — same total, per-phase subtotals. Set this OR `stages`, not both.
sourceNoName of the source, as `lca_get(kind='sources')` lists it (case-insensitive). Omitted: this connection's default source.
stagesNoMULTI-STAGE DAG (preferred for cradle-to-grave, multi-phase, or comparison systems — same total as a flat list, but each phase gets its own subtotal): named stages, each consuming process leaves and/or other stages. Declare stages + what each consumes; DO NOT wire links or name the final product — the compiler derives the edges and the final (sink) stage. Cycles are rejected. Set this OR `inputs`, not both.
dry_runNoWhen true, validate ONLY — return the envelope without persisting (and without a confirmation prompt). Default false: a valid system is built and its s-ref returned in this one call.
workspaceYesName 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.
output_nameYesName for the assembled product, e.g. 'Wooden house, 100 m²'.
output_unitNoDeclared unit for the assembled product (e.g. 'house', 'm2', 'tonne'). Used as the functional-unit unit in the scope editor.
target_amountNoFunctional-unit amount (default 1.0).
temporal_scopeNoTemporal scope of the system (e.g. '2020-2024', 'Reference year 2022').
cutoff_criteriaNoExplicit cutoff criteria (e.g. 'Mass cutoff 1%; energy cutoff 1%'). Nothing is recorded when omitted.
declared_phasesNoThe life-cycle phases this system covers — declare what its contents hold. Omitted on an assembly: production. Omitted on a linked system: production when its reference is a product it makes, else nothing. Omitted when any part carries a phase tag: nothing is declared, and the tags state the phases they name. Phases: production (materials and manufacture), distribution (transport to site, installation), use (operation, maintenance, replacement, operational energy and water), end_of_life (dismantling, waste treatment, disposal), beyond_boundary (beyond the system boundary: benefits and loads of reuse, recycling and recovery, shown beside the total — EN 15804 module D).
excluded_phasesNoPhases deliberately left out, each with an optional short reason (e.g. {phase: 'end_of_life', reason: 'outside the study goal'}). A phase in neither list reads 'not declared', never 'excluded'.
geographical_scopeNoExplicit geographical scope (e.g. 'Switzerland'). Overrides location codes derived from member processes.
process_data_typesNoWhat each member process's data are, by its ref: primary (measured by the user for this product) or secondary (a database's generic data). A process from a published database (BAFU, US LCA Commons, ecoinvent) is always secondary; one from the user's own database is secondary unless the user measured it and says primary. A process authored through Aevia left out stays unset, and the primary-data share then reads 'not recorded'. Ask the user whether a process's data are measured by them; record the answer here or later with set_data_type.
functional_unit_descriptionNoFree-text description of the functional unit (e.g. 'One house, 160 m², 50-year service life').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / properties / declared_phases / description
      Previous value: -"The life-cycle phases this system covers — declare what its contents hold. Omitted on an assembly: production. Omitted on a linked system: production when its reference is a product it makes, else nothing. Omitted when any part carries a phase tag: nothing is declared, and the tags state the phases they name. Phases: production (materials and manufacture), distribution (transport to site, installation), use (operation, maintenance, replacement, operational energy and water), end_of_life (dismantling, waste treatment, disposal), beyond_boundary (beyond end of life: benefits and loads of reuse, recycling and recovery, shown beside the total — EN 15804 module D)."New value: +"The life-cycle phases this system covers — declare what its contents hold. Omitted on an assembly: production. Omitted on a linked system: production when its reference is a product it makes, else nothing. Omitted when any part carries a phase tag: nothing is declared, and the tags state the phases they name. Phases: production (materials and manufacture), distribution (transport to site, installation), use (operation, maintenance, replacement, operational energy and water), end_of_life (dismantling, waste treatment, disposal), beyond_boundary (beyond the system boundary: benefits and loads of reuse, recycling and recovery, shown beside the total — EN 15804 module D)."
    • changedInput schema / properties / inputs / items / properties / module / description
      Previous value: -"This member's phase tag. EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond end of life: reuse, recycling, recovery), only when the study follows EN 15804; sets its phase, must match `phase`. A1-A3 for aggregated data."New value: +"This member's phase tag. EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond the system boundary: reuse, recycling, recovery), only when the study follows EN 15804; sets its phase, must match `phase`. A1-A3 for aggregated data."
    • changedInput schema / properties / inputs / items / properties / phase / description
      Previous value: -"This member's phase tag. Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (beyond end of life: reuse, recycling, recovery; shown beside the total, not in it); omit = untagged."New value: +"This member's phase tag. Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (beyond the system boundary: reuse, recycling, recovery; shown beside the total, not in it); omit = untagged."
    • changedInput schema / properties / inputs / items / properties / quantity / properties / per / description
      Previous value: -"Optional: divide by this line's value: an amount per unit of that output (e.g. the site's electricity per tonne made). Another confirmed line of the same inventory, above zero."New value: +"Optional: divide by this line's value: an amount per ONE unit of that output (e.g. the site's electricity per tonne made). Use it only where the reference amount or functional unit is one unit of that output, and for every bound amount of the same process or stage; the server refuses a mix with site totals. Another confirmed line of the same inventory, above zero."
    • changedInput schema / properties / stages / items / properties / inputs / items / properties / module / description
      Previous value: -"For a process leaf only (never a stage_ref: tag that stage itself): this leaf's own phase tag, overriding its stage's. EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond end of life: reuse, recycling, recovery), only when the study follows EN 15804; sets its phase, must match `phase`. A1-A3 for aggregated data."New value: +"For a process leaf only (never a stage_ref: tag that stage itself): this leaf's own phase tag, overriding its stage's. EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond the system boundary: reuse, recycling, recovery), only when the study follows EN 15804; sets its phase, must match `phase`. A1-A3 for aggregated data."
    • changedInput schema / properties / stages / items / properties / inputs / items / properties / phase / description
      Previous value: -"For a process leaf only (never a stage_ref: tag that stage itself): this leaf's own phase tag, overriding its stage's. Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (beyond end of life: reuse, recycling, recovery; shown beside the total, not in it); omit = untagged."New value: +"For a process leaf only (never a stage_ref: tag that stage itself): this leaf's own phase tag, overriding its stage's. Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (beyond the system boundary: reuse, recycling, recovery; shown beside the total, not in it); omit = untagged."
    • changedInput schema / properties / stages / items / properties / inputs / items / properties / quantity / properties / per / description
      Previous value: -"Optional: divide by this line's value: an amount per unit of that output (e.g. the site's electricity per tonne made). Another confirmed line of the same inventory, above zero."New value: +"Optional: divide by this line's value: an amount per ONE unit of that output (e.g. the site's electricity per tonne made). Use it only where the reference amount or functional unit is one unit of that output, and for every bound amount of the same process or stage; the server refuses a mix with site totals. Another confirmed line of the same inventory, above zero."
    • changedInput schema / properties / stages / items / properties / module / description
      Previous value: -"The stage's phase tag: what its process leaves belong to unless a leaf carries its own (one stage per phase tags a whole phase at once). EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond end of life: reuse, recycling, recovery), only when the study follows EN 15804; sets its phase, must match `phase`. A1-A3 for aggregated data."New value: +"The stage's phase tag: what its process leaves belong to unless a leaf carries its own (one stage per phase tags a whole phase at once). EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond the system boundary: reuse, recycling, recovery), only when the study follows EN 15804; sets its phase, must match `phase`. A1-A3 for aggregated data."
    • changedInput schema / properties / stages / items / properties / phase / description
      Previous value: -"The stage's phase tag: what its process leaves belong to unless a leaf carries its own (one stage per phase tags a whole phase at once). Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (beyond end of life: reuse, recycling, recovery; shown beside the total, not in it); omit = untagged."New value: +"The stage's phase tag: what its process leaves belong to unless a leaf carries its own (one stage per phase tags a whole phase at once). Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (beyond the system boundary: reuse, recycling, recovery; shown beside the total, not in it); omit = untagged."
  2. Changed4 schema fields changed
    • addedInput schema / properties / inputs / items / properties / quantity / additionalProperties
      Added value: +false
    • addedInput schema / properties / inputs / items / properties / quantity / properties / per
      Added value: +{
      +  "description": "Optional: divide by this line's value: an amount per unit of that output (e.g. the site's electricity per tonne made). Another confirmed line of the same inventory, above zero.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / stages / items / properties / inputs / items / properties / quantity / additionalProperties
      Added value: +false
    • addedInput schema / properties / stages / items / properties / inputs / items / properties / quantity / properties / per
      Added value: +{
      +  "description": "Optional: divide by this line's value: an amount per unit of that output (e.g. the site's electricity per tonne made). Another confirmed line of the same inventory, above zero.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. Changed6 schema fields changed
    • changedInput schema / properties / inputs / items / properties / amount / description
      Previous value: -"Amount consumed, in the unit `unit` declares — do NOT pre-convert, the server converts it onto the member's reference-product unit. Non-zero; a NEGATIVE amount flips this member's sign, which is how you write the BURDEN of treating waste on a dataset whose own reference amount is negative (most treatment/incineration/landfill datasets), or an AVOIDED burden on an ordinary one."New value: +"Amount consumed, in the unit `unit` declares — do NOT pre-convert, the server converts it onto the member's reference-product unit. Non-zero; a NEGATIVE amount flips this member's sign, which is how you write the BURDEN of treating waste on a dataset whose own reference amount is negative (most treatment/incineration/landfill datasets), or an AVOIDED burden on an ordinary one. Give `amount` OR `quantity`."
    • addedInput schema / properties / inputs / items / properties / quantity
      Added value: +{
      +  "description": "Bind this amount to a confirmed line of a facility inventory instead of typing it: the server reads the value and unit from the line. Give amount OR quantity.",
      +  "properties": {
      +    "inventory": {
      +      "description": "The facility inventory, `n<N>`, as `lca_get(kind='inventories')` lists it.",
      +      "pattern": "^n[1-9][0-9]*$",
      +      "type": "string"
      +    },
      +    "line": {
      +      "description": "The line number inside that inventory.",
      +      "maximum": 9007199254740991,
      +      "minimum": 1,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "inventory",
      +    "line"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / inputs / items / required
      Previous value: -[
      -  "provider_ref",
      -  "amount"
      -]New value: +[
      +  "provider_ref"
      +]
    • changedInput schema / properties / stages / items / properties / inputs / items / properties / amount / description
      Previous value: -"Process leaf: amount in the unit `unit` declares (converted for you — do NOT pre-convert); non-zero, and a NEGATIVE amount flips the leaf's sign (the burden of treating waste on a negative-reference dataset, or an avoided burden on an ordinary one). Stage ref: a dimensionless multiplier > 0 (how many functional units of that sub-stage this stage consumes)."New value: +"Process leaf: amount in the unit `unit` declares (converted for you — do NOT pre-convert); non-zero, and a NEGATIVE amount flips the leaf's sign (the burden of treating waste on a negative-reference dataset, or an avoided burden on an ordinary one). Stage ref: a dimensionless multiplier > 0 (how many functional units of that sub-stage this stage consumes). Give `amount` OR `quantity`."
    • addedInput schema / properties / stages / items / properties / inputs / items / properties / quantity
      Added value: +{
      +  "description": "Bind this amount to a confirmed line of a facility inventory instead of typing it: the server reads the value and unit from the line. Give amount OR quantity.",
      +  "properties": {
      +    "inventory": {
      +      "description": "The facility inventory, `n<N>`, as `lca_get(kind='inventories')` lists it.",
      +      "pattern": "^n[1-9][0-9]*$",
      +      "type": "string"
      +    },
      +    "line": {
      +      "description": "The line number inside that inventory.",
      +      "maximum": 9007199254740991,
      +      "minimum": 1,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "inventory",
      +    "line"
      +  ],
      +  "type": "object"
      +}
    • removedInput schema / properties / stages / items / properties / inputs / items / required
      Removed value: -[
      -  "amount"
      -]
  4. Changed2 schema fields changed
    • changedInput schema / properties / inputs / items / properties / provider_ref / description
      Previous value: -"`p<N>` of a member process supplying this input."New value: +"`p<N>` of a member process supplying this input. On a declared-results database, each p<N> is one module of one dataset; its phase comes from the data."
    • changedInput schema / properties / stages / items / properties / inputs / items / properties / provider_ref / description
      Previous value: -"`p<N>` of a member process leaf. Set provider_ref XOR stage_ref."New value: +"`p<N>` of a member process leaf. Set provider_ref XOR stage_ref. On a declared-results database, each p<N> is one module of one dataset; its phase comes from the data."
  5. Changed2 schema fields changed
    • removedInput schema / properties / engine
      Removed value: -{
      -  "description": "Name of the engine database, as `lca_get(kind='engines')` lists it (case-insensitive). Omitted: this connection's default engine.",
      -  "maxLength": 255,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "Name of the source, as `lca_get(kind='sources')` lists it (case-insensitive). Omitted: this connection's default source.",
      +  "maxLength": 255,
      +  "minLength": 1,
      +  "type": "string"
      +}
  6. Changed1 schema field changed
    • addedInput schema / properties / process_data_types
      Added value: +{
      +  "description": "What each member process's data are, by its ref: primary (measured by the user for this product) or secondary (a database's generic data). A process from a published database (BAFU, US LCA Commons, ecoinvent) is always secondary; one from the user's own database is secondary unless the user measured it and says primary. A process authored through Aevia left out stays unset, and the primary-data share then reads 'not recorded'. Ask the user whether a process's data are measured by them; record the answer here or later with set_data_type.",
      +  "items": {
      +    "properties": {
      +      "data_type": {
      +        "description": "primary: data the user measured for this product (never a published database's process); secondary: a database's generic data.",
      +        "enum": [
      +          "primary",
      +          "secondary"
      +        ],
      +        "type": "string"
      +      },
      +      "process_ref": {
      +        "description": "p-ref of a member process (one of the system's members).",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "process_ref",
      +      "data_type"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  7. Changed7 schema fields changed
    • changedInput schema / properties / declared_phases / description
      Previous value: -"The life-cycle phases this system covers — declare what its contents hold. Omitted on an assembly: production. Omitted on a linked system: production when its reference is a product it makes, else nothing. Omitted when any part carries a phase tag: nothing is declared, and the tags state the phases they name. Phases: production (materials and manufacture), distribution (transport to site, installation), use (operation, maintenance, replacement, operational energy and water), end_of_life (dismantling, waste treatment, disposal), beyond_boundary (EN 15804 module D: credits and loads of reuse, recycling and recovery)."New value: +"The life-cycle phases this system covers — declare what its contents hold. Omitted on an assembly: production. Omitted on a linked system: production when its reference is a product it makes, else nothing. Omitted when any part carries a phase tag: nothing is declared, and the tags state the phases they name. Phases: production (materials and manufacture), distribution (transport to site, installation), use (operation, maintenance, replacement, operational energy and water), end_of_life (dismantling, waste treatment, disposal), beyond_boundary (beyond end of life: benefits and loads of reuse, recycling and recovery, shown beside the total — EN 15804 module D)."
    • changedInput schema / properties / inputs / items / properties / module / description
      Previous value: -"This member's phase tag. EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond the boundary: reuse, recycling, recovery); sets its phase, must match `phase`. A1-A3 for aggregated data."New value: +"This member's phase tag. EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond end of life: reuse, recycling, recovery), only when the study follows EN 15804; sets its phase, must match `phase`. A1-A3 for aggregated data."
    • changedInput schema / properties / inputs / items / properties / phase / description
      Previous value: -"This member's phase tag. Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (module D: credits and loads of reuse, recycling, recovery; shown beside the total, not in it); omit = untagged."New value: +"This member's phase tag. Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (beyond end of life: reuse, recycling, recovery; shown beside the total, not in it); omit = untagged."
    • changedInput schema / properties / stages / items / properties / inputs / items / properties / module / description
      Previous value: -"For a process leaf only (never a stage_ref: tag that stage itself): this leaf's own phase tag, overriding its stage's. EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond the boundary: reuse, recycling, recovery); sets its phase, must match `phase`. A1-A3 for aggregated data."New value: +"For a process leaf only (never a stage_ref: tag that stage itself): this leaf's own phase tag, overriding its stage's. EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond end of life: reuse, recycling, recovery), only when the study follows EN 15804; sets its phase, must match `phase`. A1-A3 for aggregated data."
    • changedInput schema / properties / stages / items / properties / inputs / items / properties / phase / description
      Previous value: -"For a process leaf only (never a stage_ref: tag that stage itself): this leaf's own phase tag, overriding its stage's. Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (module D: credits and loads of reuse, recycling, recovery; shown beside the total, not in it); omit = untagged."New value: +"For a process leaf only (never a stage_ref: tag that stage itself): this leaf's own phase tag, overriding its stage's. Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (beyond end of life: reuse, recycling, recovery; shown beside the total, not in it); omit = untagged."
    • changedInput schema / properties / stages / items / properties / module / description
      Previous value: -"The stage's phase tag: what its process leaves belong to unless a leaf carries its own (one stage per phase tags a whole phase at once). EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond the boundary: reuse, recycling, recovery); sets its phase, must match `phase`. A1-A3 for aggregated data."New value: +"The stage's phase tag: what its process leaves belong to unless a leaf carries its own (one stage per phase tags a whole phase at once). EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond end of life: reuse, recycling, recovery), only when the study follows EN 15804; sets its phase, must match `phase`. A1-A3 for aggregated data."
    • changedInput schema / properties / stages / items / properties / phase / description
      Previous value: -"The stage's phase tag: what its process leaves belong to unless a leaf carries its own (one stage per phase tags a whole phase at once). Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (module D: credits and loads of reuse, recycling, recovery; shown beside the total, not in it); omit = untagged."New value: +"The stage's phase tag: what its process leaves belong to unless a leaf carries its own (one stage per phase tags a whole phase at once). Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (beyond end of life: reuse, recycling, recovery; shown beside the total, not in it); omit = untagged."
  8. Changed11 schema fields changed
    • changedInput schema / properties / cutoff_criteria / description
      Previous value: -"Explicit cutoff criteria (e.g. 'Mass cutoff 1%; energy cutoff 1%'). Overrides the scope-derived default."New value: +"Explicit cutoff criteria (e.g. 'Mass cutoff 1%; energy cutoff 1%'). Nothing is recorded when omitted."
    • addedInput schema / properties / declared_phases
      Added value: +{
      +  "description": "The life-cycle phases this system covers — declare what its contents hold. Omitted on an assembly: production. Omitted on a linked system: production when its reference is a product it makes, else nothing. Omitted when any part carries a phase tag: nothing is declared, and the tags state the phases they name. Phases: production (materials and manufacture), distribution (transport to site, installation), use (operation, maintenance, replacement, operational energy and water), end_of_life (dismantling, waste treatment, disposal), beyond_boundary (EN 15804 module D: credits and loads of reuse, recycling and recovery).",
      +  "items": {
      +    "enum": [
      +      "production",
      +      "distribution",
      +      "use",
      +      "end_of_life",
      +      "beyond_boundary"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / excluded_phases
      Added value: +{
      +  "description": "Phases deliberately left out, each with an optional short reason (e.g. {phase: 'end_of_life', reason: 'outside the study goal'}). A phase in neither list reads 'not declared', never 'excluded'.",
      +  "items": {
      +    "properties": {
      +      "phase": {
      +        "enum": [
      +          "production",
      +          "distribution",
      +          "use",
      +          "end_of_life",
      +          "beyond_boundary"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "description": "Why it is outside the boundary.",
      +        "maxLength": 300,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "phase"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedInput schema / properties / includes_use_phase
      Removed value: -{
      -  "description": "Set true when the bill includes USE-PHASE items — operational energy, water, maintenance or replacements during the service life. With `cradle_to_gate` that is materials plus use, end-of-life excluded (e.g. a building's materials plus 50 years of heating); with `cradle_to_grave`, the full life cycle. false = the use phase is deliberately excluded. Omit when not declaring it.",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / inputs / items / properties / module
      Added value: +{
      +  "description": "This member's phase tag. EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond the boundary: reuse, recycling, recovery); sets its phase, must match `phase`. A1-A3 for aggregated data.",
      +  "enum": [
      +    "A1",
      +    "A2",
      +    "A3",
      +    "A1-A3",
      +    "A4",
      +    "A5",
      +    "B1",
      +    "B2",
      +    "B3",
      +    "B4",
      +    "B5",
      +    "B6",
      +    "B7",
      +    "C1",
      +    "C2",
      +    "C3",
      +    "C4",
      +    "D"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / inputs / items / properties / phase
      Added value: +{
      +  "description": "This member's phase tag. Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (module D: credits and loads of reuse, recycling, recovery; shown beside the total, not in it); omit = untagged.",
      +  "enum": [
      +    "production",
      +    "distribution",
      +    "use",
      +    "end_of_life",
      +    "beyond_boundary"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / scope
      Removed value: -{
      -  "description": "System boundary. 'cradle_to_gate' (default) = materials through manufacture. 'cradle_to_grave' = ALSO include end-of-life (add disposal/treatment process leaves). 'end_of_life' = treatment of a product at end of life only; the functional unit is the treated product, e.g. '1 kg of end-of-life PV module, treated'. A cradle-to-grave system spans life-cycle phases — prefer `stages` over a flat `inputs` list so each phase gets its own subtotal.",
      -  "enum": [
      -    "cradle_to_gate",
      -    "cradle_to_grave",
      -    "end_of_life"
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / properties / stages / items / properties / inputs / items / properties / module
      Added value: +{
      +  "description": "For a process leaf only (never a stage_ref: tag that stage itself): this leaf's own phase tag, overriding its stage's. EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond the boundary: reuse, recycling, recovery); sets its phase, must match `phase`. A1-A3 for aggregated data.",
      +  "enum": [
      +    "A1",
      +    "A2",
      +    "A3",
      +    "A1-A3",
      +    "A4",
      +    "A5",
      +    "B1",
      +    "B2",
      +    "B3",
      +    "B4",
      +    "B5",
      +    "B6",
      +    "B7",
      +    "C1",
      +    "C2",
      +    "C3",
      +    "C4",
      +    "D"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / stages / items / properties / inputs / items / properties / phase
      Added value: +{
      +  "description": "For a process leaf only (never a stage_ref: tag that stage itself): this leaf's own phase tag, overriding its stage's. Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (module D: credits and loads of reuse, recycling, recovery; shown beside the total, not in it); omit = untagged.",
      +  "enum": [
      +    "production",
      +    "distribution",
      +    "use",
      +    "end_of_life",
      +    "beyond_boundary"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / stages / items / properties / module
      Added value: +{
      +  "description": "The stage's phase tag: what its process leaves belong to unless a leaf carries its own (one stage per phase tags a whole phase at once). EN 15804 module (A1-A3 product, A4-A5 transport/installation, B1-B7 use, C1-C4 end of life, D beyond the boundary: reuse, recycling, recovery); sets its phase, must match `phase`. A1-A3 for aggregated data.",
      +  "enum": [
      +    "A1",
      +    "A2",
      +    "A3",
      +    "A1-A3",
      +    "A4",
      +    "A5",
      +    "B1",
      +    "B2",
      +    "B3",
      +    "B4",
      +    "B5",
      +    "B6",
      +    "B7",
      +    "C1",
      +    "C2",
      +    "C3",
      +    "C4",
      +    "D"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / stages / items / properties / phase
      Added value: +{
      +  "description": "The stage's phase tag: what its process leaves belong to unless a leaf carries its own (one stage per phase tags a whole phase at once). Phase: production (materials, manufacture), distribution (transport, installation), use (operation, upkeep, energy/water), end_of_life (dismantling, waste, disposal), beyond_boundary (module D: credits and loads of reuse, recycling, recovery; shown beside the total, not in it); omit = untagged.",
      +  "enum": [
      +    "production",
      +    "distribution",
      +    "use",
      +    "end_of_life",
      +    "beyond_boundary"
      +  ],
      +  "type": "string"
      +}
  9. Changed1 schema field changed
    • addedInput schema / properties / includes_use_phase
      Added value: +{
      +  "description": "Set true when the bill includes USE-PHASE items — operational energy, water, maintenance or replacements during the service life. With `cradle_to_gate` that is materials plus use, end-of-life excluded (e.g. a building's materials plus 50 years of heating); with `cradle_to_grave`, the full life cycle. false = the use phase is deliberately excluded. Omit when not declaring it.",
      +  "type": "boolean"
      +}
  10. Changed1 schema field changed
    • changedInput schema / properties / workspace / description
      Previous value: -"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."New value: +"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."
  11. Changed5 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / inputs / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / stages / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / stages / items / properties / inputs / items / additionalProperties
      Removed value: -false
  12. Changed2 schema fields changed
    • changedInput schema / properties / scope / description
      Previous value: -"System boundary. 'cradle_to_gate' (default) = materials through manufacture. 'cradle_to_grave' = ALSO include end-of-life (add disposal/treatment process leaves). A cradle-to-grave system spans life-cycle phases — prefer `stages` over a flat `inputs` list so each phase gets its own subtotal."New value: +"System boundary. 'cradle_to_gate' (default) = materials through manufacture. 'cradle_to_grave' = ALSO include end-of-life (add disposal/treatment process leaves). 'end_of_life' = treatment of a product at end of life only; the functional unit is the treated product, e.g. '1 kg of end-of-life PV module, treated'. A cradle-to-grave system spans life-cycle phases — prefer `stages` over a flat `inputs` list so each phase gets its own subtotal."
    • changedInput schema / properties / scope / enum
      Previous value: -[
      -  "cradle_to_gate",
      -  "cradle_to_grave"
      -]New value: +[
      +  "cradle_to_gate",
      +  "cradle_to_grave",
      +  "end_of_life"
      +]
  13. Changed3 schema fields changed
    • addedInput schema / properties / engine
      Added value: +{
      +  "description": "Name of the engine database, as `lca_get(kind='engines')` lists it (case-insensitive). Omitted: this connection's default engine.",
      +  "maxLength": 255,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / workspace
      Added value: +{
      +  "description": "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.",
      +  "maxLength": 255,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "title",
      -  "output_name"
      -]New value: +[
      +  "workspace",
      +  "title",
      +  "output_name"
      +]
  14. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well past the annotations: it discloses that the assembly is persisted to the Aevia workspace rather than the database (so read-only sources are usable), that a valid system is saved and a `system_ref` returned, and that an invalid one saves nothing but returns `errors[]`, `missing_required[]` and `warnings[]`. It further distinguishes a tool error (source unavailable) from an invalid result, and states how members are assessed (full upstream where the source solves, else published value) — none of which the annotations convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, persistence, and result envelope before the mode-selection detail, and nearly every sentence carries distinct information. It is, however, extremely telegraphic — clauses such as 'assessed, each member counts its full upstream where the source solves, else its published value, for the declared boundary (`declared_phases`), by member' are dense to the point of needing a re-read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter, non-idempotent, write-shaped tool with no output schema, the description supplies the missing return contract (`system_ref`, the three error arrays), the failure/recovery path, persistence side effects, and the downstream tool to call. Remaining detail lives in a fully documented schema, so nothing an agent needs to invoke it correctly is absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description does not re-document individual fields. It does add relational meaning the schema only states flatly: `inputs` XOR `stages` (with the 'resend the complete system' resend rule implied by non-idempotent saving), and that members must be `p<N>` refs with UUIDs rejected. That extra wiring information pushes it slightly above baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and artifact: 'Build and save a bill of quantities of a source's datasets', with scope ('all members, from one source, with amounts, in one call') and explicit exclusions ('structure only; no LCIA'). It also distinguishes the sibling by behavior: '`lca_compose_linked` builds explicit supply edges instead', so an agent can separate the two without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the selection rule for the two modelling modes — `inputs` (flat) vs `stages` (DAG), 'not both' — and the follow-on route to `lca_run_assessment` via `system_ref`. It also hands off to `load_skill` with the named `product_system_authoring` skill for build order, and explains `dry_run: true` as the validate-only path, which is an explicit alternative workflow.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources