ontology-cli
Telemetry — MANDATORY. Every
api.fabric.microsoft.comcall must carryx-ms-fabric-skill: ontology-cli(az rest:--headers "x-ms-fabric-skill=ontology-cli"), including every LRO poll,fabric_lroand retry. Snippets omit it — add it anyway.
CRITICAL NOTES
- To find the workspace details (including its ID) from workspace name: list all workspaces and, then, use JMESPath filtering
- To find the item details (including its ID) from workspace ID, item type, and item name: list all items of that type in that workspace and, then, use JMESPath filtering
- Skill disambiguation: use
ontology-clifor operations on an Ontology item and questions grounded in that Ontology. Natural-language data questions over existing Power BI reports/models arefabriciq; report creation, editing, publishing, or rebinding ispowerbi-report-cli; semantic-model or DAX authoring issemantic-model-authoring. Naming an Ontology as a report's data source does not move report authoring into this skill.- Consumption runs through the Ontology Agent MCP server, never around it. Do not decode an ontology definition to hand-compose KQL / T-SQL / Spark SQL, and do not delegate ontology data questions to
eventhouse-cli/sqldw-cli/spark-cli. That path loses the agent's grounding and validation and is not metered.- Natural-language consumption supports only new-experience (V2) Ontologies. Call
tools/listfirst. Ifask_ontologyis absent, stop and tell the user that V1 natural-language queries are unsupported and the Ontology must be upgraded or recreated in the new experience outside this skill's authoring flow. Never fall back tosearch_ontology.- Authoring is legacy V1-only. The JSON
EntityTypes/.../definition.jsonitem-definition flow below cannot create, convert, or upgrade a new-experience (V2) Ontology. Do not route a V2 upgrade/recreation request intoauthoring.- Kusto bindings use the parent Eventhouse item ID, never the KQL database ID. Validate the staged binding against discovered source metadata before presenting an authoring preview; unresolved or mismatched source identities block the write.
Ontology CLI Skill
This skill owns two explicit, non-convertible surfaces: legacy V1 JSON-definition authoring, and read-only questions over existing new-experience (V2) Ontologies through the Ontology Agent MCP endpoint. It does not upgrade V1 items to V2 or author V2 items.
It is a mode dispatcher and contains NO procedures. Pick the mode that matches the request from the table below, then read the matching references/<mode>.md file end to end with your file-reading tool BEFORE issuing a single command. That file holds the endpoints, payload shapes, templates and gotchas; acting without it produces wrong payloads and wrong results.