Skip to main content
Glama
Auto Ontology MCP

Auto Ontology MCP

Export semantic layer as YAML or JSON

export_ontology
Read-onlyIdempotent

Serialize 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

NameRequiredDescriptionDefault
formatNoOutput serialization format: 'yaml' (human-readable) or 'json'.yaml
datasourceNoDatasource name. Optional when only one datasource is registered.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.2
    • changedInput schema / properties / format / description
      Previous value: -"Document format."New value: +"Output serialization format: 'yaml' (human-readable) or 'json'."
  2. First observedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, non-open-world behavior, so safety is covered. The description adds valuable scope boundaries beyond that: the output is a single consolidated document per datasource and deliberately excludes record rows, which prevents an agent from expecting row-level data. It says nothing extra about size limits or permissions, but those are minor here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and output shape, followed by usage routing and then the key exclusion. The long enumeration of included artifacts is dense but each item reduces ambiguity about coverage; only the itemized list borders on padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and annotations carry the safety profile, so the description only needs to cover scope and routing, which it does fully: what is included, what is excluded, when to use it, and which sibling to prefer for a different rendering need.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters are fully documented in the schema, so the baseline is 3. The description echoes the two parameters (single datasource scope, YAML or JSON document) without adding syntax, defaults, or behavior for the optional datasource case, so it does not materially exceed the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (serialize/export) and resource (one datasource's entire semantic layer) and enumerates exactly what the output document contains: tables, relationships, Terms, SQL attributes, concepts, typed relations, glossary entries, example queries. It is immediately distinguishable from export_wiki, which is named as the alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete use cases (backup, review, version control, migrating via import_ontology) and explicitly routes the agent to export_wiki when rendered markdown pages are wanted instead. It also states a negative condition: structured record rows from the knowledge store are not included.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.