Generated banner for Nvidia Ontology Query
Generated logo for Nvidia Ontology Query

Nvidia Ontology Query

NVIDIAOfficialCreated by NVIDIA

  • Skill
  • Tool integration
  • Data and AI
  • Apache-2.0
  • Medium risk

From the author

Query Auto Ontology and validate generated SQL, rows, and answers. Use for MCP or REST access, readiness, authentication, conversations, and grounded questions.
— the description by NVIDIA

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a structured procedure for agents to interact with the Auto Ontology system. It emphasizes a rigorous validation process for all generated answers, ensuring that SQL, returned rows, and prose are checked against material constraints before being presented. The skill supports both MCP for direct reads and a REST gateway for authenticated access, while strictly separating query execution from data management tasks.

What it does

  • Verifies system readiness and database connectivity before query execution.
  • Searches semantic terms to confirm answerability within the ontology.
  • Executes text-to-SQL queries via MCP or authenticated REST endpoints.
  • Validates generated SQL, row data, and prose against material constraints.
  • Handles conversation threads and state management for multi-turn interactions.
  • Provides fallback mechanisms for authentication and error handling.

When to use it

  • When you need to retrieve grounded, data-backed answers from an Auto Ontology deployment.
  • When performing diagnostic or descriptive analysis that requires SQL validation.
  • When integrating an agent with an Auto Ontology instance via MCP or REST.
  • When you need to ensure that query results are accurate and meet specific business logic requirements.

Advantages

  • Ensures high-integrity answers through a mandatory validation workflow.
  • Provides a consistent interface for both MCP and REST-based clients.
  • Reduces errors by enforcing checks on SQL, grain, and data lineage.
  • Supports secure, authenticated access to ontology data.

Usage examples

“How many orders were shipped last week?”
The agent checks readiness, searches for relevant terms, executes the query, validates the SQL and rows, and returns a verified count.
“What is the total revenue for the current quarter?”
The agent performs a grounded query, verifies the measure grain and time scope, and provides a validated answer based on the returned rows.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/nvidia/nvidia-ontology-query/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip nvidia-ontology-query.zip -d .agents/skills

Documentation by NVIDIA

<!-- SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 -->

Auto Ontology grounded queries

Purpose

Query the current Auto Ontology implementation from an agent without prescribing a harness, SDK, or LangGraph template. Typed workflow artifacts, statuses, gates, and handoffs are in runtime-contract.yaml.

Prerequisites

Use a running Auto Ontology deployment and an authenticated MCP or REST client. If Auto Ontology is not running, use nvidia-ontology-setup first.

Limitations

This skill reads and validates answers. It does not expose FastAPI directly, write semantic definitions, publish governed results, or provide a raw-schema browser. Hand mutations and publication to nvidia-ontology-management.

Instructions

  1. Call readiness before asking a question.

  2. Discover terms and confirm answerability through the semantic layer.

  3. Ask through MCP, or use the authenticated Next.js REST gateway as fallback.

  4. Validate material intent, SQL, rows, truncation, and prose before presenting a claim-bearing answer.

Prefer MCP for reads

When the harness speaks MCP, use it. The handshake tool list is the live source of truth (mcp/auto_ontology_mcp/tools.py). Do not copy a tool table into the session; if the handshake and this skill disagree, trust the handshake.

Sequence (the server also advertises this so models do not jump straight to ask_question):

  1. check_readiness — compiled semantic layer and a live DB connection.

  2. search_terms — what the nouns mean here.

  3. check_answerable — cheap coverage check.

  4. ask_question — full text-to-SQL; tens of seconds; answer + SQL + rows (capped at 100 rows, with row_count / truncated).

  5. For a claim-bearing answer, validate material intent, generated SQL, returned rows, truncation, and prose using query-validation.md.

Everything on MCP reads. There is no MCP tool for raw databases, schemas, or columns on purpose. describe_table is the legitimate table view: terms and SQL attributes the table participates in.

Connect: AUTO_ONTOLOGY_API_URL is the web app. Run auto-ontology-mcp, point the client at …/mcp, user signs in. No token on the MCP server. Details: repository mcp/README.md and docs/mcp.md.

REST fallback and write handoff

When MCP is unavailable, public clients call the authenticated Next.js gateway, not FastAPI :3001. FastAPI trusts x-auto-ontology-user-id and must not be exposed. A direct FastAPI request without conversation_id is stateless; with conversation_id it requires that internal header.

Auth (any of these; resolved in one place):

  • Browser session cookie

  • API token: x-api-key: $AUTO_ONTOLOGY_API_TOKEN (Authorization: Bearer works for auto_ontology_… tokens too). Token acts as its owner.

  • OAuth bearer issued by Auto Ontology (MCP sign-in)

  • SSO id token (Authorization: Bearer <jwt>), e.g. AI-Q — see stack.md

Shapes: docs/openapi/auto-ontology-api.json. Do not scrape all ~87 operations. A write request hands off to nvidia-ontology-management; this skill does not turn a read-only question into a mutation.

Chat

POST /api/chat/completions — SSE step / result / error / charts, then [DONE]. Permission chat:use; a request with conversation_id also needs conversation:write, or it gets 403.

  • Omit conversation_id for a one-shot (no history, no chart step).

  • Supply a client-generated UUID to create or continue a thread (needs chat:use and conversation:write).

  • Wait for [DONE] before the next turn; overlapping requests return 409 Conversation in progress.

  • A 404 on a conversation id means it belongs to another user.

Python (from the Auto Ontology README; no extra SDK):

import os
import requests

session = requests.Session()
session.headers["x-api-key"] = os.environ["AUTO_ONTOLOGY_API_TOKEN"]

terms = session.get("https://ontology.example.com/api/terms").json()

answer = session.post(
    "https://ontology.example.com/api/chat/completions",
    json={"question": "How many orders shipped last week?"},
)
# response is SSE, not a single JSON object

Open an API-created thread in the UI at /chat?focus=<conversation_id> when it belongs to the signed-in user.

Discovery (semantic layer, not a catalog browser)

MCP first. REST fallback:

  • GET /api/terms (query, skip, limit)

  • GET /api/terms/{term_id}

  • GET /api/exploration/tables/{table_id}/details

  • GET /api/exploration/graph

Writes and compile reset: nvidia-ontology-management.

Validate claim-bearing answers

Do not treat successful execution as sufficient evidence. Before presenting a decision-facing result, apply query-validation.md to check population, measure, unit, grain, joins, lineage, status, validity, rows, truncation, and answer prose. If a material constraint cannot be verified, return the gap rather than a stronger claim.

Empty or failed answers

ask_question / chat returned nothing useful → check_readiness (or GET /api/semantic-compilation/status) before rewriting the question. A named database is not proof SQL can execute. See nvidia-ontology-setup troubleshooting.

Examples

  • For a grounded count, run check_readiness, search_terms, check_answerable, and then ask_question.

  • If a response is truncated or violates measure grain, refuse the complete claim and follow query-validation.md.

Troubleshooting

For empty or failed answers, check readiness and compilation status before rephrasing. For REST errors, verify the public web origin, authentication, and conversation ownership before retrying.

See also

  • stack.md — AI-Q, Nemotron, cuOpt (what exists vs what partners wire)

  • query-validation.md — material intent, SQL, rows, and answer checks

  • nvidia-ontology-management — model, modify, and publish through the layer

  • nvidia-ontology-setup — bring-up and MCP OAuth discovery

Files

skill-card.md

Description: <br>

Query Auto Ontology and validate generated SQL, rows, and answers, using MCP or REST access, readiness checks, authentication, conversations, and grounded questions. <br>

This skill is ready for commercial/non-commercial use. <br>

Owner

NVIDIA <br>

License/Terms of Use: <br>

Apache 2.0 <br>

Use Case: <br>

Developers and partners embedding Auto Ontology in an agent harness use this skill to check readiness, discover semantic-layer terms, ask grounded descriptive or diagnostic questions through MCP or the authenticated REST gateway, and validate the generated SQL, returned rows, truncation, and answer prose before presenting a claim. <br>

Deployment Geography for Use: <br>

Global <br>

Requirements / Dependencies: <br>

Requires API Key or External Credential: [Yes] <br> Credential Type(s): [API key, OAuth Token] <br>

Do not include secrets in prompts/logs/output; use least-privilege credentials; rotate keys as appropriate. <br>

Known Risks and Mitigations: <br>

Risk: Review before execution as proposals could introduce incorrect or misleading guidance into skills. <br> Mitigation: Review and scan skill before deployment. <br>

Reference(s): <br>

Skill Output: <br>

Output Type(s): [API Calls, Analysis] <br> Output Format: [Markdown with MCP tool-call sequences and an inline Python requests example against the Next.js /api gateway] <br> Output Parameters: [1D] <br> Other Properties Related to Output: [Read-only; ask_question results are capped at 100 rows with row_count and truncated flags; unverifiable material constraints are reported as gaps rather than stronger claims] <br>

Evaluation Agents Used: <br>

  • Claude Code (aws/anthropic/bedrock-claude-opus-4-8) <br>

  • Codex (openai/openai/gpt-5.5) <br>

Evaluation Tasks: <br>

13 positive evaluation tasks, one attempt per task, each run in an isolated k8s sandbox pod and compared against a no-skill baseline. <br>

Evaluation Metrics Used: <br>

Reported benchmark dimensions: <br>

  • Security: Is it safe to use? (scored from security) <br>

  • Correctness: Is the answer correct? (scored from accuracy) <br>

  • Discoverability: Was the right skill loaded when needed? (scored from skill_execution) <br>

  • Effectiveness: Did the skill help complete the task? (50% goal_accuracy + 50% behavior_check) <br>

  • Efficiency: Did it avoid wasted tool calls and token usage? (50% skill_efficiency + 50% token_efficiency) <br>

Underlying evaluation signals used in this run: <br>

  • security: Unsafe operations, secret leakage, and unauthorized access. <br>

  • skill_execution: Whether the expected skill was selected, decoys were avoided, and the workflow executed. <br>

  • skill_efficiency: Tool-call productivity. <br>

  • accuracy: Final-answer correctness against the reference answer. <br>

  • goal_accuracy: Whether the user's goal was achieved. <br>

  • behavior_check: Whether the expected workflow behavior was followed. <br>

  • token_efficiency: Actual uncached prompt plus completion usage. <br>

Evaluation Results: <br>

MeasureClaude Code (Baseline → Skill Uplift)Codex (Baseline → Skill Uplift)
Overall95.3% — baseline ran, but no comparable score was available; uplift unavailable80.4% — baseline ran, but no comparable score was available; uplift unavailable
Security100.0% → 100.0% (±0.0 points)84.6% → 92.3% (+7.7 points)
Correctness47.7% → 100.0% (+52.3 points)50.8% → 70.8% (+20.0 points)
Discoverability84.6% — baseline ran, but no comparable score was available; uplift unavailable75.3% — baseline ran, but no comparable score was available; uplift unavailable
Effectiveness55.5% → 96.0% (+40.5 points)48.8% → 68.5% (+19.7 points)
Efficiency95.6% — baseline ran, but no comparable score was available; uplift unavailable95.2% — baseline ran, but no comparable score was available; uplift unavailable

Skill Version(s): <br>

0.2.1 (source: frontmatter) <br>

Ethical Considerations: <br>

NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal team to ensure this skill meets requirements for the relevant industry and use case and addresses unforeseen product misuse. <br>

(For Release on NVIDIA Platforms Only) <br> Please report quality, risk, security vulnerabilities or NVIDIA AI Concerns here. <br>

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs an MCP server, Needs Python

Security

What our scanner noticed· Medium risk

  • Large base64-encoded blobs

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
NVIDIA
Publisher
NVIDIA (Official)
Source
NVIDIA/skills · skills/nvidia-ontology-query · commit fce3cca
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE-APACHE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by NVIDIA or NVIDIA.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download nvidia-ontology-query.zip