Skip to main content
Glama

Import openLCA project

lca_import_project

Import an openLCA project: assess each variant and save one comparison. project is the project's name as engine_search(kind='project') lists it, or a unique part of it, in the database named by source, else this connection's default, which must be writable. Each enabled variant's product system is imported into workspace as an s<N> (one already there is refreshed) and assessed once as an a<N> with the variant's amount, unit and allocation and the project's method and normalization/weighting set; the variants are saved as one comparison c<N>, returned as primary_ref. openLCA's API cannot calculate a project; this reproduces it variant by variant, each at its own amount (functional equivalence is not checked). Without confirm: true the call returns a preview and starts nothing. A run within 45 seconds returns its result; a longer one returns a task_id for lca_get_task_status. Refused: fewer than 2 or more than 9 enabled variants, or parameter redefinitions. Disabled variants are skipped.

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>",
      "project": "<project>"
    },
    "name": "lca_import_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoName of the source, as `lca_get(kind='sources')` lists it (case-insensitive). Omitted: this connection's default source.
confirmNoRun the import: the systems, one assessment per variant and the comparison. Without it the call returns a preview of what would be imported and starts nothing.
projectYesThe openLCA project's name as `engine_search(kind='project')` lists it (backticks optional), or a unique part of it.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Rich disclosure beyond the annotations: the 45-second sync/async split with task_id handoff, the preview-without-confirm contract, the refresh semantics for an existing s<N>, and explicit refusal conditions (fewer than 2 or more than 9 enabled variants, parameter redefinitions). It also flags a real caveat that the openLCA API cannot calculate a project and that functional equivalence is not checked, which an agent needs in order to trust the output.

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?

Purpose and the confirm gate are front-loaded, and nearly every sentence carries new information. The single dense paragraph packs multiple clauses (import/assess/compare/timeout/refusals) that would scan better as discrete sentences, but there is no filler to cut.

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

Completeness4/5

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

For a four-parameter mutation with no output schema, the description covers return values (primary_ref, task_id), preconditions, refusal cases, and variant handling. The only minor gap is what the preview response actually contains, which an agent would have to discover empirically.

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, but the description earns more by explaining that `project` is matched by name or unique prefix within the database named by `source`, and that `workspace` must be writable because the connection default is often an empty sandbox. That adds operational meaning the schema's terse strings do not carry.

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?

The description opens with a specific verb and resource ("Import an openLCA project") and immediately defines the composite operation: assess each variant and save one comparison. It implicitly distinguishes itself from the single-system sibling by stating that each enabled variant's product system is imported and assessed, so an agent can tell this apart from a plain system import without opening another schema.

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

Usage Guidelines4/5

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

The when-to-use context is clear (reproducing a project variant-by-variant, with the confirm gate for preview vs. execution) and it routes to lca_get_task_status for long runs. It stops short of explicitly naming when to prefer lca_import_system or lca_run_assessment instead, so the alternative-selection guidance is implied rather than stated.

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