Get an ontology's schema and example questions
helix_foundry_get_contextLearn what a business's Foundry ontology holds before you ask or read it: its schema (each type's properties, key, names and identifiers, and its links, rules and constraints) and example questions it answers, the ones Foundry suggests. It describes the version of the current load, which helix_foundry_ask and helix_foundry_read_graph use by default, or the current version while nothing is loaded. An agent bundle's schema is its ontology.toml; a Definition v1 version's is its definition. With source grants that cover part of the load, it describes that part.
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>"
},
"name": "helix_foundry_get_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | The version described: the current load's, else the current version while nothing is loaded. Absent while the ontology has no version, or when the caller's source grants cover no load. | |
| ontology | Yes | ||
| definition | No | Untrusted. A Definition v1 version's schema: its entities, relationships, rules and constraints. | |
| content_trust | Yes | ||
| ontology_toml | No | Untrusted. An agent bundle's schema, its ontology.toml: [types.<Type>] with description, props (name = type), key, names and identifiers; [links.<name>] with from, to, description, cardinality and required; [rules.<name>] and [constraints.<name>] with description, severity and datalog. Types and links are the ones ask and read_graph name. | |
| example_questions | Yes | Untrusted. Up to 4 questions the version was drafted to answer, the ones Foundry suggests: good first questions for helix_foundry_ask. Empty for a Definition v1 version, a draft without them, and a caller whose source grants cover only part of the load. |