Query SPOKE Biomedical Knowledge Graph
query_spokeRun read-only Cypher queries against the SPOKE biomedical knowledge graph with automatic safety limits, timeouts, and trimmed output for reliable knowledge inference.
Instructions
Execute a read-only Cypher query on SPOKE for biomedical knowledge inference.
Behaviour built in for you:
Only read queries are allowed (writes are rejected).
An unbounded, non-aggregate query gets a safety LIMIT appended so it cannot accidentally scan the 43M-node graph; aggregations and queries with your own LIMIT are left as-is.
A transaction timeout aborts pathological queries instead of hanging.
Output is trimmed (noisy HTML/link fields removed, long strings cut) and capped in size to stay efficient.
Tips: resolve names first with resolve_entity; use the edge_directory from get_spoke_schema to choose relationship types; pass literals via parameters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parameters | No | Query parameters, e.g. {"name": "Parkinson's disease"} used as $name in the query. Strongly preferred over inlining literals. | |
| cypher_query | Yes | A read-only Cypher query. Anchor it on a node resolved via resolve_entity (match by exact name or identifier) and pass string literals through `parameters` rather than inlining them (this avoids case and apostrophe errors, e.g. "Parkinson's disease"). |