Search LCA database
engine_searchSearch an LCA database for processes, systems, flows or methods. The database is the one named by source, else this connection's default. kind scopes to processes, systems, flows, projects, methods (m<N> refs), or all (processes, systems and flows). query='*' (or an empty string) enumerates everything of the given kind (one page of limit, plus the true total). With kind='flow', flow_type (elementary / product / waste) filters the results; with kind='process', process_type (unit_process / system_process) filters by type and geography (a location code) by place. Returns typed refs (p1, e1, f1; a system hit is an e<N> engine-catalog ref, not a workspace s<N>) valid for the session, accepted by engine_get and lca_run_assessment. scope_ref (any engine ref such as p3/e1/m2 from an earlier result) searches the database that ref came from instead, for comparing across databases; refs minted that way stay bound to that database.
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": {
"query": "<query>"
},
"name": "engine_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | What to search for. 'all' queries processes, systems, and flows in parallel. 'project' lists openLCA projects — a project is addressed by its name, which `lca_import_project` takes. 'method' lists the LCIA methods whose name contains every word of `query` (`*` lists all); not part of 'all'. | all |
| limit | No | Max results per page (default 20). | |
| query | Yes | Free-text query, matched word by word against dataset names, categories and location codes — there is no meaning-based matching, so the nouns a dataset is named by (a material, a process, a product) find more than a description of the use (`polypropylene injection moulding`, not `plastic plate`). On an openLCA database a place matches by name or code (`Switzerland`, `CH`); to keep only one place, on any engine, use `geography`. When no hit contains every word, the closest partial matches come back, labelled as such. Use `*` (or an empty string) to list everything of the given `kind` — the way to enumerate what a database contains. | |
| offset | No | Start index for pagination (default 0). | |
| source | No | Name of the source, as `lca_get(kind='sources')` lists it (case-insensitive). Omitted: this connection's default source. Not combined with `scope_ref`, which picks the database a ref came from. | |
| flow_type | No | Only meaningful when kind=flow. | |
| geography | No | Only meaningful when kind=process. A location code (`CH`, `RER`, `GLO`, `RoW`, `CA-QC`); only processes located exactly there are returned. On an ecoinvent engine this is the only way to choose a place: a place written into `query` filters nothing there. | |
| scope_ref | No | Optional. An engine ref (`p`/`e`/`f`/`m`) whose database to search instead of the active connection. Omit to search the active connection. | |
| process_type | No | Only meaningful when kind=process. Restrict to unit processes vs aggregated (system) processes. |