Export semantic layer as YAML or JSON
export_ontologySerialize a datasource's semantic layer—tables, relationships, terms, concepts, and queries—into one YAML or JSON file for backup, review, version control, or migration.
Instructions
Serialize one datasource's entire semantic layer as a single YAML or JSON document containing tables, relationships, Terms with column mappings, SQL attributes, concepts, typed relations, glossary entries, and example queries. Use for backup, review, version control, or migrating via import_ontology; use export_wiki to render Obsidian markdown pages instead. Does not include structured record rows from the knowledge store.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_ontology"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output serialization format: 'yaml' (human-readable) or 'json'. | yaml |
| datasource | No | Datasource name. Optional when only one datasource is registered. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||