advanced_search¶
Execute custom Cypher queries against the Neo4j LCA database.
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | Yes | Cypher query (1-5000 chars, READ-ONLY) |
database |
string | Yes | Database version |
params |
dict | No | Query parameters (optional) |
Query Limitations¶
- READ-ONLY: No CREATE, DELETE, SET, REMOVE, MERGE
- Timeout: 30 seconds maximum
- Result limit: 1000 rows maximum
Example¶
Prompt: Find all US electricity activities using advanced search
Query:
MATCH (a:Activity)
WHERE a.location = 'US'
AND a.reference_product CONTAINS 'electricity'
RETURN a.name, a.unit
LIMIT 10
Node Types¶
- Activity, BiosphereFlow, Method, Location, Unit
Related Tools¶
- get_graph_schema - Understand database structure
- search_activities - Simpler search