Skip to main content
Glama

Read the ontology

get_ontology
Read-onlyIdempotent

Get what this project's data means, at one of three depths. 'domain' is the project as a whole: its domain summary, conventions, and how many entities and fields are exposed. A person who is not an administrator gets an empty domain, and the counts cover only datasources their Roles at rich or full list. 'entities' is every exposed entity with its description, usage notes, and an overview of its fields. 'fields' is the full meaning of every field of up to 10 named entities: description, classification path, purpose, semantic type, role, synonyms, units, and what an identifier refers to. At 'entities' and 'fields' depth, a person who is not an administrator is answered only for datasources their Roles at rich or full list. At any depth, an explicit datasource outside that reach is refused with datasource_not_granted. At 'entities' and 'fields' depth, each datasource those entities belong to that has not finished setup is listed with its status under datasources_not_ready. Start at 'domain' and descend as needed. It reads metadata only: no row, sample, enumerated value, or count from the data is ever returned.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "depth": "<depth>"
    },
    "name": "get_ontology"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthYesDepth: 'domain', 'entities', or 'fields'.
entitiesNoEntities to describe, by qualified or bare name. Optional at 'entities' depth; required at 'fields' depth, at most 10.
datasourceNoOptional datasource ID to scope 'entities' or 'fields' depth to one datasource; 'domain' depth answers over the caller's whole reach and is not scoped. At any depth, a datasource outside a narrowed caller's reach is refused with datasource_not_granted. At 'entities' or 'fields' depth, a datasource that has not finished setup is refused with datasource_not_ready.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, and the description goes well beyond them: non-administrator callers get an empty domain, counts and answers are restricted to datasources their Roles reach at rich or full, explicit out-of-reach datasources are refused with a named code, and unfinished datasources are surfaced under datasources_not_ready. It also states a hard safety boundary — no row, sample, enumerated value, or data count is ever returned.

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?

The depth ladder is front-loaded and each paragraph-level sentence carries substance. However, the non-administrator reach rule and the datasource refusal conditions are restated across sentences (and duplicated between description and schema), so the block is longer than necessary for its content.

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?

With no output schema, the description must explain return shapes and does: domain summary plus conventions and counts, per-entity descriptions with field overviews, and full per-field semantics. It also covers the two failure surfaces (grant and setup status), leaving no obvious gap for a three-parameter read-only tool.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it defines what each depth actually returns, clarifies that 'domain' is not scoped by datasource, notes the 10-entity cap for 'fields', and specifies the per-caller reach rules governing the datasource parameter. The 'fields' output contents (classification path, purpose, semantic type, role, synonyms, units, identifier referent) are not derivable from the schema alone.

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

Purpose4/5

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

States a specific verb and resource ('Get what this project's data means') and enumerates the three depths, each with concrete content (domain summary and conventions, entity descriptions and field overview, full field meaning). It doesn't explicitly contrast itself with structural siblings like get_schema, so the read-semantics-vs-read-structure boundary must be inferred.

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 explicit sequencing advice ('Start at domain and descend as needed'), explains the entities parameter's optionality at 'entities' depth versus its requirement at 'fields' depth, and names the refusal conditions (datasource_not_granted, datasource_not_ready, datasources_not_ready) that select failure paths. An agent knows both the recommended entry point and the escalation path.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources