Skip to main content
Glama

Edit product system

lca_edit_assembly
Destructive

Patch a saved composed (bill-of-materials) system (s<N>). Ops: replace_provider (swap a member everywhere it is used), set_target_amount (rescale the functional unit), set_title (rename), add_member / remove_member, set_member_amount (rescale a member), add_stage / remove_stage (grow or shrink the stage DAG; acyclic, one sink), set_boundary (declared_phases / excluded_phases; nothing goes stale), set_data_type (primary, measured by the user, or secondary), sync_inventory (alone: re-reads inventory lines). mode (default edit): edit patches in place, keeping the same s<N>; fork derives a new s<M>. A mirror forks on a content change, with a warning. Each member is linked cradle-to-gate on its own when assessed; only units are checked, so a swap can change a dataset's geography, technology and reference year. Takes p<N> refs, not UUIDs. Linked and single-process systems are edited with lca_edit_linked. lca_run_assessment assesses the returned ref.

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>",
      "ref": "<ref>",
      "ops": "<ops>"
    },
    "name": "lca_edit_assembly"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYesOrdered list of edits to apply in one call.
refYesSaved product-system ref `s<N>` to patch.
modeNo`edit` (default) → edit the system IN PLACE, appending a new content version and keeping the same `s<N>` (self-contained systems; a drift-tracked mirror auto-forks to a new `s<M>` with a warning, since it can't be mutated in place). `fork` → always derive a NEW `s<M>`, leaving the baseline `s<N>` untouched.edit
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.
base_version_seqNoREQUIRED here: the system's current content `version_seq`, as `lca_get s<N>` reports it — the version you computed this edit against. Rejected (409) if the system has moved on since, and nothing is changed. Re-read the system between edits: a successful in-place edit advances the version. (Kept optional in the schema so an omission gets the backend's instructive 422 rather than a bare validation error.)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / ops / items / properties / declared_phases / description
      Previous value: -"set_boundary: the phases the system covers; replaces the current list ([] clears it). Omit to keep it. 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: +"set_boundary: the phases the system covers; replaces the current list ([] clears it). Omit to keep it. 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 / ops / items / properties / inputs / items / properties / module / description
      Previous value: -"add_stage input, process leaf only (never a stage_ref: that stage carries its own tag): this leaf's own phase tag, overriding the new 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: +"add_stage input, process leaf only (never a stage_ref: that stage carries its own tag): this leaf's own phase tag, overriding the new 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 / ops / items / properties / inputs / items / properties / phase / description
      Previous value: -"add_stage input, process leaf only (never a stage_ref: that stage carries its own tag): this leaf's own phase tag, overriding the new 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: +"add_stage input, process leaf only (never a stage_ref: that stage carries its own tag): this leaf's own phase tag, overriding the new 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 / ops / 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 / ops / items / properties / module / description
      Previous value: -"add_member: the new member's phase tag. add_stage: the new stage's (what its process leaves belong to unless a leaf carries its own). Not used by any other op: an existing part keeps its tag, and replace_provider moves it to the new member (dropped, with a warning, when that member was already in the system). 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: +"add_member: the new member's phase tag. add_stage: the new stage's (what its process leaves belong to unless a leaf carries its own). Not used by any other op: an existing part keeps its tag, and replace_provider moves it to the new member (dropped, with a warning, when that member was already in the system). 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 / ops / items / properties / phase / description
      Previous value: -"add_member: the new member's phase tag. add_stage: the new stage's (what its process leaves belong to unless a leaf carries its own). Not used by any other op: an existing part keeps its tag, and replace_provider moves it to the new member (dropped, with a warning, when that member was already in the system). 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: +"add_member: the new member's phase tag. add_stage: the new stage's (what its process leaves belong to unless a leaf carries its own). Not used by any other op: an existing part keeps its tag, and replace_provider moves it to the new member (dropped, with a warning, when that member was already in the system). 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 / ops / 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."
  2. Changed4 schema fields changed
    • addedInput schema / properties / ops / items / properties / inputs / items / properties / quantity / additionalProperties
      Added value: +false
    • addedInput schema / properties / ops / 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"
      +}
    • addedInput schema / properties / ops / items / properties / quantity / additionalProperties
      Added value: +false
    • addedInput schema / properties / ops / 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. Changed2 schema fields changed
    • changedInput schema / properties / ops / items / properties / op / description
      Previous value: -"Which edit to apply."New value: +"Which edit to apply. `sync_inventory` (alone, no other field): re-read every bound amount from its facility inventory after a corrected file was reviewed; writes a new content version."
    • changedInput schema / properties / ops / items / properties / op / enum
      Previous value: -[
      -  "replace_provider",
      -  "set_target_amount",
      -  "set_title",
      -  "add_member",
      -  "remove_member",
      -  "set_member_amount",
      -  "add_stage",
      -  "remove_stage",
      -  "set_boundary",
      -  "set_data_type"
      -]New value: +[
      +  "replace_provider",
      +  "set_target_amount",
      +  "set_title",
      +  "add_member",
      +  "remove_member",
      +  "set_member_amount",
      +  "add_stage",
      +  "remove_stage",
      +  "set_boundary",
      +  "set_data_type",
      +  "sync_inventory"
      +]
  4. Changed4 schema fields changed
    • changedInput schema / properties / ops / items / properties / inputs / items / properties / amount / description
      Previous value: -"add_stage input: process leaf → amount in the unit `unit` declares (converted for you — do NOT pre-convert); non-zero, and NEGATIVE flips the leaf's sign (a waste burden, or an avoided burden). stage_ref → a dimensionless multiplier > 0 (count of sub-stage FUs)."New value: +"add_stage input: process leaf → amount in the unit `unit` declares (converted for you — do NOT pre-convert); non-zero, and NEGATIVE flips the leaf's sign (a waste burden, or an avoided burden). stage_ref → a dimensionless multiplier > 0 (count of sub-stage FUs). Give `amount` OR `quantity`."
    • addedInput schema / properties / ops / 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 / ops / items / properties / inputs / items / required
      Removed value: -[
      -  "amount"
      -]
    • addedInput schema / properties / ops / items / properties / quantity
      Added value: +{
      +  "description": "add_member/set_member_amount: 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"
      +}
  5. Changed3 schema fields changed
    • addedInput schema / properties / ops / items / properties / data_type
      Added value: +{
      +  "description": "set_data_type: the member process's data type (primary: data the user measured for this product (never a published database's process); secondary: a database's generic data). A published database's process is secondary by construction and cannot be primary.",
      +  "enum": [
      +    "primary",
      +    "secondary"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / ops / items / properties / op / enum
      Previous value: -[
      -  "replace_provider",
      -  "set_target_amount",
      -  "set_title",
      -  "add_member",
      -  "remove_member",
      -  "set_member_amount",
      -  "add_stage",
      -  "remove_stage",
      -  "set_boundary"
      -]New value: +[
      +  "replace_provider",
      +  "set_target_amount",
      +  "set_title",
      +  "add_member",
      +  "remove_member",
      +  "set_member_amount",
      +  "add_stage",
      +  "remove_stage",
      +  "set_boundary",
      +  "set_data_type"
      +]
    • changedInput schema / properties / ops / items / properties / provider_ref / description
      Previous value: -"add_member/remove_member/set_member_amount: `p<N>` of the member process."New value: +"add_member/remove_member/set_member_amount/set_data_type: `p<N>` of the member process."
  6. Changed5 schema fields changed
    • changedInput schema / properties / ops / items / properties / declared_phases / description
      Previous value: -"set_boundary: the phases the system covers; replaces the current list ([] clears it). Omit to keep it. 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: +"set_boundary: the phases the system covers; replaces the current list ([] clears it). Omit to keep it. 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 / ops / items / properties / inputs / items / properties / module / description
      Previous value: -"add_stage input, process leaf only (never a stage_ref: that stage carries its own tag): this leaf's own phase tag, overriding the new 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: +"add_stage input, process leaf only (never a stage_ref: that stage carries its own tag): this leaf's own phase tag, overriding the new 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 / ops / items / properties / inputs / items / properties / phase / description
      Previous value: -"add_stage input, process leaf only (never a stage_ref: that stage carries its own tag): this leaf's own phase tag, overriding the new 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: +"add_stage input, process leaf only (never a stage_ref: that stage carries its own tag): this leaf's own phase tag, overriding the new 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 / ops / items / properties / module / description
      Previous value: -"add_member: the new member's phase tag. add_stage: the new stage's (what its process leaves belong to unless a leaf carries its own). Not used by any other op: an existing part keeps its tag, and replace_provider moves it to the new member (dropped, with a warning, when that member was already in the system). 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: +"add_member: the new member's phase tag. add_stage: the new stage's (what its process leaves belong to unless a leaf carries its own). Not used by any other op: an existing part keeps its tag, and replace_provider moves it to the new member (dropped, with a warning, when that member was already in the system). 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 / ops / items / properties / phase / description
      Previous value: -"add_member: the new member's phase tag. add_stage: the new stage's (what its process leaves belong to unless a leaf carries its own). Not used by any other op: an existing part keeps its tag, and replace_provider moves it to the new member (dropped, with a warning, when that member was already in the system). 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: +"add_member: the new member's phase tag. add_stage: the new stage's (what its process leaves belong to unless a leaf carries its own). Not used by any other op: an existing part keeps its tag, and replace_provider moves it to the new member (dropped, with a warning, when that member was already in the system). 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."
  7. Changed8 schema fields changed
    • addedInput schema / properties / ops / items / properties / declared_phases
      Added value: +{
      +  "description": "set_boundary: the phases the system covers; replaces the current list ([] clears it). Omit to keep it. 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 / ops / items / properties / excluded_phases
      Added value: +{
      +  "description": "set_boundary: phases deliberately left out, each with an optional reason; replaces the current list ([] clears it). Omit to keep it. 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 / ops / items / properties / includes_use_phase
      Removed value: -{
      -  "description": "set_boundary: true = the bill includes use-phase items (operational energy, water, maintenance, replacements); false = the use phase is deliberately excluded. Omit to keep the current declaration.",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / ops / items / properties / inputs / items / properties / module
      Added value: +{
      +  "description": "add_stage input, process leaf only (never a stage_ref: that stage carries its own tag): this leaf's own phase tag, overriding the new 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 / ops / items / properties / inputs / items / properties / phase
      Added value: +{
      +  "description": "add_stage input, process leaf only (never a stage_ref: that stage carries its own tag): this leaf's own phase tag, overriding the new 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 / ops / items / properties / module
      Added value: +{
      +  "description": "add_member: the new member's phase tag. add_stage: the new stage's (what its process leaves belong to unless a leaf carries its own). Not used by any other op: an existing part keeps its tag, and replace_provider moves it to the new member (dropped, with a warning, when that member was already in the system). 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 / ops / items / properties / phase
      Added value: +{
      +  "description": "add_member: the new member's phase tag. add_stage: the new stage's (what its process leaves belong to unless a leaf carries its own). Not used by any other op: an existing part keeps its tag, and replace_provider moves it to the new member (dropped, with a warning, when that member was already in the system). 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 / ops / items / properties / scope
      Removed value: -{
      -  "description": "set_boundary: the new declared system boundary; omit to keep the current one.",
      -  "enum": [
      -    "cradle_to_gate",
      -    "cradle_to_grave",
      -    "end_of_life"
      -  ],
      -  "type": "string"
      -}
  8. Changed3 schema fields changed
    • addedInput schema / properties / ops / items / properties / includes_use_phase
      Added value: +{
      +  "description": "set_boundary: true = the bill includes use-phase items (operational energy, water, maintenance, replacements); false = the use phase is deliberately excluded. Omit to keep the current declaration.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / ops / items / properties / op / enum
      Previous value: -[
      -  "replace_provider",
      -  "set_target_amount",
      -  "set_title",
      -  "add_member",
      -  "remove_member",
      -  "set_member_amount",
      -  "add_stage",
      -  "remove_stage"
      -]New value: +[
      +  "replace_provider",
      +  "set_target_amount",
      +  "set_title",
      +  "add_member",
      +  "remove_member",
      +  "set_member_amount",
      +  "add_stage",
      +  "remove_stage",
      +  "set_boundary"
      +]
    • addedInput schema / properties / ops / items / properties / scope
      Added value: +{
      +  "description": "set_boundary: the new declared system boundary; omit to keep the current one.",
      +  "enum": [
      +    "cradle_to_gate",
      +    "cradle_to_grave",
      +    "end_of_life"
      +  ],
      +  "type": "string"
      +}
  9. 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."
  10. 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
    • addedInput schema / properties / base_version_seq / maximum
      Added value: +9007199254740991
    • removedInput schema / properties / ops / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / ops / items / properties / inputs / items / additionalProperties
      Removed value: -false
  11. Changed2 schema fields changed
    • 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: -[
      -  "ref",
      -  "ops"
      -]New value: +[
      +  "workspace",
      +  "ref",
      +  "ops"
      +]
  12. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare a destructive, non-idempotent, non-read-only write, but the description adds real behavioral context beyond them: edit appends a new content version and keeps the same ref while fork derives a new one, a drift-tracked mirror auto-forks with a warning, a version conflict is rejected (409) with nothing changed, and a phase is dropped with a warning on replace_provider. The caveat that only units are checked — so a provider swap can silently change geography, technology and reference year — is exactly the kind of risk disclosure an agent needs before a destructive patch. It stops short of describing the response payload, but most behavioral traits are covered.

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 the purpose and the op inventory, and nearly every clause carries information (fork behavior, unit-checking caveat, sibling routing). It is a dense single paragraph of semicolon-chained clauses, which makes it harder to scan than a short bulleted op list would be, but there is little true filler.

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 destructive, multi-op, schema-complete mutation tool with no output schema, the description supplies the decision-relevant context: mode semantics, version-conflict behavior, mirror forking, per-op field applicability, and where to go next for assessment. Nothing an agent needs in order to invoke it safely is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3; the description's op list does implicitly map which fields belong to which op, which is useful orientation. However, the detailed parameter guidance (unit conversion, negative-amount sign flipping, base_version_seq semantics) is already carried by the schema, and the description largely restates what is there, adding only the 'takes `p<N>` refs, not UUIDs' shorthand.

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?

Opens with a specific verb and resource ('Patch a saved composed (bill-of-materials) system (`s<N>`)') and enumerates every supported op, so an agent knows exactly what surface it operates on. It explicitly excludes linked/single-process systems ('Linked and single-process systems are edited with `lca_edit_linked`'), distinguishing it from the nearest sibling without opening either schema.

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 explicit routing: composed BOM systems go here, linked and single-process systems go to `lca_edit_linked`, and the result is assessed with `lca_run_assessment`. It also states per-op constraints (sync_inventory alone), the edit-vs-fork choice and its default, and that base_version_seq is required — conditions an agent would otherwise have to guess.

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