Skip to main content
Glama

Get an ontology's schema and example questions

helix_foundry_get_context
Read-onlyIdempotent

Learn 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

NameRequiredDescriptionDefault
ontology_idYesFoundry ontology identifier.
workspace_idNoHelix workspace identifier. May be empty when the caller has only one workspace (a service key always does).

Output Schema

NameRequiredDescriptionDefault
versionNoThe 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.
ontologyYes
definitionNoUntrusted. A Definition v1 version's schema: its entities, relationships, rules and constraints.
content_trustYes
ontology_tomlNoUntrusted. 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_questionsYesUntrusted. 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare the safe read profile (readOnly, idempotent, non-destructive), and the description adds substantial context beyond them: which version is described (current load vs. current version when unloaded), what constitutes the schema for an agent bundle (ontology.toml) vs. a Definition v1 version, and partial-coverage behavior under source grants.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose and versioning behavior are front-loaded in the first sentences, but the trailing sentences about agent bundle ontology.toml and Definition v1 add density that is informative yet slightly hard to parse in one read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema defining return values and annotations covering the safety profile, the description only needs to explain scope and versioning — which it does thoroughly, including partial-load coverage under source grants.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both parameters (ontology_id, workspace_id) are already well documented in the schema. The description does not add syntax or format meaning for either parameter, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action (learn/retrieve what an ontology holds) and enumerates the returned contents: schema, each type's properties/key/identifiers/links/rules/constraints, plus example questions. It explicitly separates itself from helix_foundry_ask and helix_foundry_read_graph, so an agent can pick it without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The opening 'before you ask or read it' establishes when to call this relative to the query tools, and it names the siblings that consume this context by default. It stops short of explicit when-not-to-use or prerequisite conditions (e.g., required permissions), keeping it just below a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources