Skip to main content
Glama

Delete saved object

lca_delete
Destructive

Delete a saved system, assessment, comparison, analysis or report. ref is an s<N> system, a<N> assessment, c<N> comparison, b<N> contribution analysis, v<N> sensitivity analysis or r<N> report in the workspace named by workspace. The deletion cannot be undone. A system takes its assessments with it; they leave any comparison they belong to. An assessment leaves its system, its comparisons and its analyses (kept, detached). A comparison takes only itself. Reports citing a deleted object are kept, but those citations stop resolving. Without confirm: true the call returns a preview listing what goes by ref, and deletes nothing. For an s<N>, its copy in the openLCA engine is kept unless delete_engine_copy: true, which deletes it only when Aevia created it and the engine is writable; that changes the openLCA database, so it needs the Execute access level. A process or flow authored into an engine is deleted by engine_delete.

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

Input Schema

NameRequiredDescriptionDefault
refYesThe saved object to delete: `s<N>` system, `a<N>` assessment, `c<N>` comparison, `b<N>` contribution analysis, `v<N>` sensitivity analysis, `r<N>` report or `n<N>` facility inventory.
confirmNoDelete it. Without it the call returns a preview of everything the delete takes with it, and deletes nothing.
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.
delete_engine_copyNo`s<N>` only: also delete the system's copy in its openLCA engine — honoured only when Aevia created that copy and the engine is writable. Kept by default. Needs the Execute access level (it changes the openLCA database); below it the call is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / ref / description
      Previous value: -"The saved object to delete: `s<N>` system, `a<N>` assessment, `c<N>` comparison, `b<N>` contribution analysis, `v<N>` sensitivity analysis or `r<N>` report."New value: +"The saved object to delete: `s<N>` system, `a<N>` assessment, `c<N>` comparison, `b<N>` contribution analysis, `v<N>` sensitivity analysis, `r<N>` report or `n<N>` facility inventory."
  2. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description goes well beyond them: it spells out cascade behavior per object type (a system takes its assessments and detaches them from comparisons; an assessment is detached from its system, comparisons and analyses; a comparison takes only itself), what happens to reports citing deleted objects, and the preview-without-confirm contract. It also discloses the Execute access requirement and the conditions under which the engine copy is actually removed.

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

Conciseness5/5

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

Front-loaded with the purpose, then ordered by consequence: ref grammar, irreversibility, per-type cascade rules, report behaviour, preview contract, engine-copy exception, and finally the sibling exclusion. Every sentence carries distinct operational information; there is no 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, cascading tool with no output schema, the definition supplies everything an agent needs to call it safely: what gets removed, what is kept or detached, how to preview first, the permission gate on the engine copy, and the correct alternative for engine objects.

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 schema already documents all four parameters and their prefix conventions. The description still adds value by tying each `ref` prefix to its real cascade consequences and by restating that `delete_engine_copy` is honoured only when Aevia created the copy and the engine is writable — conditions the schema states more briefly.

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 (Delete) and enumerates the resource types it applies to (system, assessment, comparison, analysis, report). It also explicitly names the sibling it is not — 'A process or flow authored into an engine is deleted by engine_delete' — so an agent can route correctly 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 Guidelines5/5

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

Gives the key exclusion up front by pointing engine-authored processes and flows to engine_delete, and describes the safe invocation path (call without `confirm` to get a preview first). The irreversible nature is stated so the agent knows this is not a casual operation.

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