Skip to main content
Glama

Get workspace item

lca_get
Read-onlyIdempotent

Read a saved workspace object by ref, or list systems, results or workspaces. Takes exactly one of ref (one object's detail) or kind (a list). A ref is read in the workspace named by workspace, which it requires: each workspace numbers its objects from 1. A kind list reads that workspace, else the connection's default. Refs: s/a/c/b/v/r/n<N> → system / assessment / comparison / contribution analysis / sensitivity analysis / report / facility inventory. An s<N> read also states the system's kind and its edit tool; form='authored' returns the shape the compose and edit tools accept. An n<N> read gives its lines; form='grid' reads its stored file (sheet index, then a window by sheet + range). Kinds: 'systems' / 'assessments' / 'comparisons' / 'contribution_analyses' / 'sensitivity_analyses' / 'reports' / 'inventories' return paginated lists (filters: query, system_ref, method, assessment_status); 'workspaces' / 'sources' list those available. UUIDs are not accepted.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lca_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoSingle-entity ref: `s`/`a`/`c`/`b`/`v`/`r`/`n<N>`. Mutually exclusive with `kind`.
fileNoform='grid' on an `n<N>`: which uploaded file, by its number (default: the newest); a cell or range anchor names the same number as `file_seq`.
formNoref='s<N>': 'snapshot' (default) is the structural read. 'authored' returns the system lifted back to the AUTHORED form — the shape `lca_compose_assembly` / `lca_compose_linked` speak, tagged with its `kind`, carrying a multi-stage bill of quantities' stage DAG unflattened and a linked system's `links[]` (neither of which the snapshot has). Read this before editing a system you did not just author. ref='n<N>': 'grid' reads the stored spreadsheet instead of the lines: the sheet index, or with `sheet` + `range` one window of cells.
kindNoCollection mode. Mutually exclusive with `ref`. 'workspaces' and 'sources' are the odd ones out: they list the WORKSPACES / SOURCES available to you rather than the contents of the current one.
limitNo
queryNoFree-text match on name/description (case-insensitive).
rangeNoform='grid' on an `n<N>`: the A1 range to read, e.g. `A1:F20`; give it with `sheet`.
sheetNoform='grid' on an `n<N>`: the sheet to read a window of; give it with `range`.
methodNokind='assessments': substring match on method_name.
offsetNo
phasesNoref='a<N>' or 'c<N>' only: read the saved result under these life-cycle phases — the backend sums them (a comparison sums each target's), and its text adds a column for the selection. A read, never stored and never re-run. 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'.
workspaceNoName of the workspace to read, as `lca_get(kind='workspaces')` lists it. Required with `ref`: each workspace numbers its objects from 1, so a ref is read in the workspace it came from. Omitted with `kind`: this connection's default workspace, which every conversation on the connection shares and which is often an empty sandbox.
system_refNokind='assessments': filter to assessments on a single system.
assessment_statusNokind='assessments': filter by status. Every saved assessment is completed (a failed solve saves nothing).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / file
      Added value: +{
      +  "description": "form='grid' on an `n<N>`: which uploaded file, by its number (default: the newest); a cell or range anchor names the same number as `file_seq`.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / form / description
      Previous value: -"ref='s<N>' only. 'snapshot' (default) is the structural read. 'authored' returns the system lifted back to the AUTHORED form — the shape `lca_compose_assembly` / `lca_compose_linked` speak, tagged with its `kind`, carrying a multi-stage bill of quantities' stage DAG unflattened and a linked system's `links[]` (neither of which the snapshot has). Read this before editing a system you did not just author."New value: +"ref='s<N>': 'snapshot' (default) is the structural read. 'authored' returns the system lifted back to the AUTHORED form — the shape `lca_compose_assembly` / `lca_compose_linked` speak, tagged with its `kind`, carrying a multi-stage bill of quantities' stage DAG unflattened and a linked system's `links[]` (neither of which the snapshot has). Read this before editing a system you did not just author. ref='n<N>': 'grid' reads the stored spreadsheet instead of the lines: the sheet index, or with `sheet` + `range` one window of cells."
    • changedInput schema / properties / form / enum
      Previous value: -[
      -  "snapshot",
      -  "authored"
      -]New value: +[
      +  "snapshot",
      +  "authored",
      +  "grid"
      +]
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "systems",
      -  "assessments",
      -  "comparisons",
      -  "contribution_analyses",
      -  "sensitivity_analyses",
      -  "reports",
      -  "workspaces",
      -  "sources"
      -]New value: +[
      +  "systems",
      +  "assessments",
      +  "comparisons",
      +  "contribution_analyses",
      +  "sensitivity_analyses",
      +  "reports",
      +  "inventories",
      +  "workspaces",
      +  "sources"
      +]
    • addedInput schema / properties / range
      Added value: +{
      +  "description": "form='grid' on an `n<N>`: the A1 range to read, e.g. `A1:F20`; give it with `sheet`.",
      +  "maxLength": 32,
      +  "pattern": "^[A-Z]{1,3}[0-9]{1,7}(:[A-Z]{1,3}[0-9]{1,7})?$",
      +  "type": "string"
      +}
    • changedInput schema / properties / ref / description
      Previous value: -"Single-entity ref: `s`/`a`/`c`/`b`/`v`/`r<N>`. Mutually exclusive with `kind`."New value: +"Single-entity ref: `s`/`a`/`c`/`b`/`v`/`r`/`n<N>`. Mutually exclusive with `kind`."
    • addedInput schema / properties / sheet
      Added value: +{
      +  "description": "form='grid' on an `n<N>`: the sheet to read a window of; give it with `range`.",
      +  "maxLength": 64,
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / kind / description
      Previous value: -"Collection mode. Mutually exclusive with `ref`. 'workspaces' and 'engines' are the odd ones out: they list the WORKSPACES / ENGINE DATABASES available to you rather than the contents of the current one."New value: +"Collection mode. Mutually exclusive with `ref`. 'workspaces' and 'sources' are the odd ones out: they list the WORKSPACES / SOURCES available to you rather than the contents of the current one."
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "systems",
      -  "assessments",
      -  "comparisons",
      -  "contribution_analyses",
      -  "sensitivity_analyses",
      -  "reports",
      -  "workspaces",
      -  "engines"
      -]New value: +[
      +  "systems",
      +  "assessments",
      +  "comparisons",
      +  "contribution_analyses",
      +  "sensitivity_analyses",
      +  "reports",
      +  "workspaces",
      +  "sources"
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / assessment_status / description
      Previous value: -"kind='assessments': filter by status."New value: +"kind='assessments': filter by status. Every saved assessment is completed (a failed solve saves nothing)."
    • changedInput schema / properties / assessment_status / enum
      Previous value: -[
      -  "pending",
      -  "running",
      -  "completed",
      -  "failed"
      -]New value: +[
      +  "completed"
      +]
  4. Changed1 schema field changed
    • addedInput schema / properties / phases
      Added value: +{
      +  "description": "ref='a<N>' or 'c<N>' only: read the saved result under these life-cycle phases — the backend sums them (a comparison sums each target's), and its text adds a column for the selection. A read, never stored and never re-run. 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'.",
      +  "items": {
      +    "enum": [
      +      "production",
      +      "distribution",
      +      "use",
      +      "end_of_life",
      +      "beyond_boundary",
      +      "unassigned"
      +    ],
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
  5. Changed2 schema fields changed
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "systems",
      -  "assessments",
      -  "comparisons",
      -  "workspaces",
      -  "engines"
      -]New value: +[
      +  "systems",
      +  "assessments",
      +  "comparisons",
      +  "contribution_analyses",
      +  "sensitivity_analyses",
      +  "reports",
      +  "workspaces",
      +  "engines"
      +]
    • changedInput schema / properties / ref / description
      Previous value: -"Single-entity ref. `s<N>` system, `a<N>` assessment, `c<N>` comparison. Mutually exclusive with `kind`."New value: +"Single-entity ref: `s`/`a`/`c`/`b`/`v`/`r<N>`. Mutually exclusive with `kind`."
  6. Changed1 schema field changed
    • removedInput schema / properties / include_stale
      Removed value: -{
      -  "description": "kind='systems': when true, also returns OUT_OF_SYNC / NOT_FOUND / UNREACHABLE / ARCHIVED rows.",
      -  "type": "boolean"
      -}
  7. Changed1 schema field changed
    • changedInput schema / properties / workspace / description
      Previous value: -"Name of the workspace to read, as `lca_get(kind='workspaces')` lists it. Omitted: this connection's default workspace, which every conversation on the connection shares and which is often an empty sandbox."New value: +"Name of the workspace to read, as `lca_get(kind='workspaces')` lists it. Required with `ref`: each workspace numbers its objects from 1, so a ref is read in the workspace it came from. Omitted with `kind`: this connection's default workspace, which every conversation on the connection shares and which is often an empty sandbox."
  8. Changed1 schema field changed
    • changedInput schema / properties / workspace / description
      Previous value: -"Name of the workspace to read, as `lca_get(kind='workspaces')` lists it. Omitted: this connection's default workspace, which every conversation on the connection shares."New value: +"Name of the workspace to read, as `lca_get(kind='workspaces')` lists it. Omitted: this connection's default workspace, which every conversation on the connection shares and which is often an empty sandbox."
  9. Changed4 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 / offset / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / system_ref / maximum
      Added value: +9007199254740991
  10. Changed1 schema field changed
    • addedInput schema / properties / workspace
      Added value: +{
      +  "description": "Name of the workspace to read, as `lca_get(kind='workspaces')` lists it. Omitted: this connection's default workspace, which every conversation on the connection shares.",
      +  "maxLength": 255,
      +  "minLength": 1,
      +  "type": "string"
      +}
  11. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it discloses that refs are workspace-scoped counters and UUIDs are rejected, that `phases` is a computed read 'never stored and never re-run' with a defined default (all phases except beyond_boundary, plus unassigned), and that such a read is 'Refused, with the reason' when phase rows are incomplete. It also warns that the default workspace is shared and 'often an empty sandbox' — a real behavioral trap an agent would otherwise hit.

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 one-of rule, then organized by mode (ref reads, then kinds). Dense but nearly every clause carries information; the long em-dash sentences for `authored` and `phases` slow parsing slightly but nothing is filler.

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 14-parameter polymorphic reader with no output schema, the definition covers mode selection, scoping, forms, and filters thoroughly. It stops short of describing the shape of a returned list item or the default page size, which matters since no output schema exists to fill that in.

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?

Adds substantial meaning beyond the 86%-covered schema: the ref prefix legend, the snapshot/authored/grid distinction and why authored matters, the sheet+range windowing, and the phase-summation semantics. The gap is pagination — `limit` and `offset` carry no schema description and the text only says lists are 'paginated' without stating defaults or ordering.

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?

States a specific verb and resource plus its dual mode: 'Read a saved workspace object by ref, or list systems, results or workspaces.' The ref-token taxonomy (`s`/`a`/`c`/`b`/`v`/`r`/`n<N>`) makes it unambiguous which object types this covers, distinguishing it from single-resource readers like the factor tools.

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?

Gives a hard selection rule ('Takes exactly one of `ref` ... or `kind`'), states that `ref` requires `workspace` because each workspace numbers objects from 1, and prescribes when to use `form='authored'` ('Read this before editing a system you did not just author'). It does not name alternative read tools (e.g. factor lookup or search) as fallbacks, so there is no explicit when-not guidance.

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