Skip to main content

Get bounded ontology context

Use ontology__get_context to give an agent the smallest relevant part of a published ontology without mixing draft or latest versions.
  • Required inputs: release_id and query.
  • Optional inputs: include, max_resources, max_depth, max_tokens, diagnostics, session_id, and Gateway’s rationale.
  • Limits: max_resources is 1–50, max_depth is 0–4, and max_tokens is 1–32,000.
  • Effect: read only.
include accepts object_types, interface_types, link_types, shared_property_types, and action_types. The response identifies the exact release and manifest digest, explains why each resource was selected, and reports its traversal depth and estimated token cost. Check truncated before relying on the result. When it is true, follow the returned refinement hints or request different bounds. The service searches only resources visible to the caller, filters them to the selected release, and expands typed dependencies within the requested limits.