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://mp-staging.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

BENCHMARK.md

Skill Benchmark: nvidia-ontology-query

✅ Overall verdict: PASS — Recommended for publication

Publication Recommendation

Recommended for publication based on the completed evaluation evidence in this report.

Evaluation Metadata

  • Skill: nvidia-ontology-query

  • Evaluation date: 2026-10-08

  • Evaluator version: 1.5.6

  • Agents: Claude Code (aws/anthropic/bedrock-claude-opus-4-8), Codex (openai/openai/gpt-5.5)

  • Tasks: 13 evaluation tasks (13 positive)

  • Dataset digest: sha256:314823168b2eada85a48a450189c9d2cc1d374eed343c106147bd2b63080bf72 (skill-evaluator-dataset-snapshot/1)

  • Attempts per task: 1

  • Environment: k8s-sandbox

  • Tier 2 evidence: required for publication

  • Tier 3 evidence: required for publication

Each task attempt ran in its own isolated sandbox pod.

What This Report Answers

The three-tier evaluation checks whether the skill:

  • is safe to use;

  • produces correct answers;

  • is discovered and activated when needed;

  • helps the agent complete the user's goal and expected workflow; and

  • avoids wasted skill and tool usage.

Results at a Glance

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

How to read this table: baseline is the same task attempted without the target skill. Scores are rounded to one decimal; threshold-adjacent values use additional precision so their displayed band matches the verdict. Uplift is derived from those displayed scores and shown in percentage points.

Example: 47.0% → 92.0% (+45.0 points) means the skill-assisted run scored 92.0%, 45.0 percentage points above its 47.0% no-skill baseline.

A partial dimension was calculated from only the available configured signals; review the detailed report before relying on it.

Token Usage

Actual Tier 3 execution usage is reported for every observed agent/case pair and both conditions.

AgentDataset caseWith skillWithout skillDeltaChangeCoverage
claude-codeAll cases1,646,2835,779,380-4,133,097-71.51%skill 13/13; base 13/13
claude-codequery-eval-001-mcp-first96,646218,379-121,733-55.74%skill 1/1; base 1/1
claude-codequery-eval-002-no-fastapi-public97,88229,472+68,410+232.12%skill 1/1; base 1/1
claude-codequery-eval-003-conversation-40961,58791,478-29,891-32.68%skill 1/1; base 1/1
claude-codequery-eval-004-sso-vs-api-token95,201122,413-27,212-22.23%skill 1/1; base 1/1
claude-codequery-eval-005-no-raw-schema-tools61,52229,540+31,982+108.27%skill 1/1; base 1/1
claude-codequery-eval-006-cuopt-not-in-repo624,1924,985,881-4,361,689-87.48%skill 1/1; base 1/1
claude-codequery-eval-007-readiness-before-retry165,64929,437+136,212+462.72%skill 1/1; base 1/1
claude-codequery-eval-008-quantity-not-ratio30,29330,144+149+0.49%skill 1/1; base 1/1
claude-codequery-eval-009-run-metric-fanout96,12830,591+65,537+214.24%skill 1/1; base 1/1
claude-codequery-eval-010-scenario-lineage95,933122,173-26,240-21.48%skill 1/1; base 1/1
claude-codequery-eval-011-prose-versus-rows95,26429,639+65,625+221.41%skill 1/1; base 1/1
claude-codequery-eval-012-source-role30,64530,615+30+0.10%skill 1/1; base 1/1
claude-codequery-eval-013-truncated-result95,34129,618+65,723+221.90%skill 1/1; base 1/1
codexAll cases1,088,7445,171,383-4,082,639-78.95%skill 13/13; base 13/13
codexquery-eval-001-mcp-first44,90462,766-17,862-28.46%skill 1/1; base 1/1
codexquery-eval-002-no-fastapi-public13,38569,411-56,026-80.72%skill 1/1; base 1/1
codexquery-eval-003-conversation-409126,942263,292-136,350-51.79%skill 1/1; base 1/1
codexquery-eval-004-sso-vs-api-token44,76459,779-15,015-25.12%skill 1/1; base 1/1
codexquery-eval-005-no-raw-schema-tools28,73245,391-16,659-36.70%skill 1/1; base 1/1
codexquery-eval-006-cuopt-not-in-repo491,1094,405,244-3,914,135-88.85%skill 1/1; base 1/1
codexquery-eval-007-readiness-before-retry28,70913,336+15,373+115.27%skill 1/1; base 1/1
codexquery-eval-008-quantity-not-ratio13,51613,452+64+0.48%skill 1/1; base 1/1
codexquery-eval-009-run-metric-fanout44,97113,686+31,285+228.59%skill 1/1; base 1/1
codexquery-eval-010-scenario-lineage45,69783,805-38,108-45.47%skill 1/1; base 1/1
codexquery-eval-011-prose-versus-rows44,85013,478+31,372+232.76%skill 1/1; base 1/1
codexquery-eval-012-source-role132,302114,167+18,135+15.88%skill 1/1; base 1/1
codexquery-eval-013-truncated-result28,86313,576+15,287+112.60%skill 1/1; base 1/1
ALL AGENTSDataset aggregate2,735,02710,950,763-8,215,736-75.02%skill 26/26; base 26/26

Prompt tokens include cached reads, so total tokens are prompt + completion (cached is not added twice). The Efficiency score uses (prompt - cached) + completion. N/A means the relevant trajectory counters were not available; coverage is never estimated.

Tier Status

TierPurposeStatusEvidence
Tier 1Static validationPASSED WITH OBSERVATIONS11 validator(s); 2 finding(s)
Tier 2Semantic deduplicationPASSED2 validator(s); 0 finding(s)
Tier 3Live agent evaluationPASS2 agent(s); 13 task(s)

Findings and Observations

<details> <summary>Show detailed findings and successful checks</summary>

  • MEDIUM SECURITY/Unknown (SQP-2): The documentation explicitly states that the aud (audience) claim is NOT checked on SSO bearer tokens forwarded by AI- (references/stack.md:14)

  • LOW SECURITY/Unknown (SQP-1): The description triggers on "MCP or REST access, readiness, authentication, conversations, and grounded questions" — ter (SKILL.md:3)

</details>

Scoring Methodology

<details> <summary>Show dimension definitions, source signals, and thresholds</summary>

DimensionQuestionScored signals
SecurityIs it safe to use?security (100%)
CorrectnessIs the answer correct?accuracy (100%)
DiscoverabilityWas the right skill loaded when needed?skill_execution (100%)
EffectivenessDid the skill help complete the task?goal_accuracy (50%) + behavior_check (50%)
EfficiencyDid it avoid wasted tool calls and token usage?skill_efficiency (50%) + token_efficiency (50%)
  • Dimension bands: PASS at 50% or above; NEUTRAL from 40% to below 50%; FAIL below 40%.

  • Overall Tier 3 lift: PASS at +5 points or more; FAIL at -10 points or less; values between those bands are NEUTRAL.

  • Overall verdict: PASS only when every configured dimension passes for at least one supported agent. Lift is reported as diagnostic evidence and does not override this gate.

  • The 50% attempt pass threshold is a separate per-task gate; it is not the dimension pass threshold.

  • Effectiveness is the equal-weight mean of goal completion (goal_accuracy) and expected workflow adherence (behavior_check).

  • Efficiency is 50% tool-call productivity (the backward-compatible skill_efficiency wire id) and 50% token_efficiency. Positive-case skill routing is scored under Discoverability, not Efficiency; a negative case without a routing target is N/A. N/A sources are omitted, remaining weights are renormalized, and the dimension is marked partial.

Signals present in this run:

  • security (Security): unsafe operations, secret leakage, and unauthorized access.

  • skill_execution (Skill Execution): whether the expected skill was selected, decoys were avoided, and the workflow executed.

  • skill_efficiency (Tool Productivity): tool-call productivity (legacy wire id; routing is scored under Discoverability).

  • accuracy (Accuracy): final-answer correctness against the reference answer.

  • goal_accuracy (Goal Accuracy): whether the user's goal was achieved.

  • behavior_check (Behavior Check): whether the expected workflow behavior was followed.

  • token_efficiency (Token Efficiency): actual uncached prompt plus completion usage (50% of Efficiency).

</details>

Freshness

Regenerate this benchmark when the skill, evaluation dataset, target agent/model, evaluator version, environment, or scoring policy changes.

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.

Download ZIP

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