Skip to main content
Glama

Delete product system

lca_delete_system
Destructive

Delete a saved product system (s<N>) and its assessments from a workspace. The system is system_ref in the workspace named by workspace. The deletion cannot be undone. Its assessments (a<N>) are deleted with it and leave any comparison (c<N>) they belong to; contribution and sensitivity analyses (b<N>, v<N>) are kept, detached; reports (r<N>) citing it are kept, but those citations stop resolving. Without confirm: true the call returns a preview listing every one of them by ref, and deletes nothing. The system's copy in its openLCA engine is kept unless delete_engine_copy: true, which deletes it too only when Aevia created that copy and the engine is writable; the preview and the result say which applies. delete_engine_copy changes the openLCA database, so it needs this connection at the Execute access level; below it the call is refused, and deleting without it is allowed. A process or flow authored into an engine is deleted by lca_delete_authored.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
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.
system_refYesThe saved product system `s<N>` to delete.
delete_engine_copyNoAlso 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. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description goes far beyond them: it enumerates the exact cascade (assessments deleted, comparison membership lost, contribution/sensitivity analyses detached, report citations left dangling), states irreversibility, and explains the preview path. It also discloses the engine-copy deletion preconditions and the authorization level required.

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 core action and irreversibility, then organized by consequence, preview, and engine copy. It is dense rather than padded, but repeats the confirm/preview behavior already stated in the schema and runs long for four parameters.

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, non-idempotent mutation with no output schema, the description covers everything needed: what is destroyed, what survives, what the preview returns, and the permission gate. No output schema exists, so explaining return values is unnecessary and its absence is not a gap.

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 description coverage is 100%, so the baseline is 3, but the description adds semantic linkage the schema does not: it ties `confirm` to a preview that lists every affected ref by type, and ties `delete_engine_copy` to the 'Aevia created it and engine writable' condition plus the refusal threshold. That is genuine added meaning, though much of it overlaps the schema text.

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 ('Delete a saved product system (`s<N>`) and its assessments') plus the scope ('from a workspace'), and explicitly distinguishes itself from the sibling `lca_delete_authored` for engine-authored processes/flows. An agent can route correctly without opening any 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 concrete when-to-use conditions: without `confirm: true` it only previews, and it names the alternative tool for a different object type. The access-level prerequisite for `delete_engine_copy` (Execute level, otherwise refused) is also spelled out, so the agent knows both the trigger and the exclusion.

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