Read a Foundry graph
helix_foundry_read_graphLook up exact records in a business's Foundry ontology: typed queries over its entities and facts, the evidence and source behind a fact, why a derived fact holds, and rule breaks, read from a load with its version's rules applied. 1 to 20 reads in one call; helix_foundry_read_guide gives their JSON Schema. An entity is named by its id as reads return it, its key's plain values (such as {"type": "Site", "key": "app.example.com"}) or a name.
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": {
"ontology_id": "<ontology_id>",
"reads": "<reads>"
},
"name": "helix_foundry_read_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reads | Yes | 1 to 20 reads, each an object with exactly one key: entity, pattern, explain, violations, evidence or query. helix_foundry_read_guide returns their schema. | |
| load_id | No | Load to read; the ontology's current load when empty. | |
| valid_at | No | Read as of this day, YYYY-MM-DD, not after today (UTC); empty for now. Evidence then leaves out quotes of documents dated after it or whose date couldn't be read, and rows the load didn't know by then, and flags an undated document's quote undated; reads that can only show the load as it is now (entity, pattern, explain, violations, query) are refused with current_only. | |
| ontology_id | Yes | Foundry ontology identifier. | |
| workspace_id | No | Helix workspace identifier. May be empty when the caller has only one workspace (a service key always does). | |
| use_case_run_id | No | An open run of a use case (helix_foundry_start_use_case_run) to record this call under; empty for none. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Untrusted read result: one entry per read, in order. An integer past 2^53 comes as a string of its digits, which JSON numbers would round. | |
| load_id | Yes | ||
| ontology_id | Yes | ||
| content_trust | Yes |