Skip to main content
Glama
Auto Ontology MCP

Auto Ontology MCP

Describe a physical database table

describe_table
Read-onlyIdempotent

Inspect a physical table’s full catalog metadata—columns including unmapped ones, keys, terms, joins, and SQL attributes—to verify raw structure and identify unmapped columns.

Instructions

Inspect one physical table's complete catalog metadata: all columns (including unmapped ones), keys, junction flag, attached Terms and attributes, join relationships, and SQL attributes. Use to verify raw table structure or unmapped columns; use get_term for business meaning, get_query_context for multi-Term SQL generation, and get_source for knowledge provenance. Fails with closest table name suggestions if the table does not exist.

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": {
      "table": "<table>"
    },
    "name": "describe_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesPhysical table name, schema-qualified if needed (e.g. 'sales.orders').
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 / table / description
      Previous value: -"Table name, schema-qualified if needed."New value: +"Physical table name, schema-qualified if needed (e.g. 'sales.orders')."
  2. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds value beyond them by disclosing the failure mode ('fails with closest table name suggestions if the table does not exist') and by clarifying that unmapped columns are included, which an agent would otherwise not assume. It does not discuss pagination or size limits, but for a single-table metadata read that is a minor gap.

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

Conciseness5/5

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

Two sentences, both front-loaded: the first declares scope and contents, the second routes the agent to alternatives and states the failure behavior. The long enumeration in sentence one is load-bearing rather than padding, and there is no redundant restatement of the title.

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, so return shape need not be explained, and the description instead covers the things the schema cannot: what is in scope (unmapped columns), which sibling to pick, and what happens on a miss. For a two-parameter read tool with full annotations, nothing an agent needs to call it correctly is missing.

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%, so the schema already explains both the schema-qualified 'table' parameter and the optional 'datasource' parameter. The description adds essentially no parameter-level meaning; it never mentions datasource or how to resolve ambiguity when multiple datasources are registered. Baseline 3 applies since the schema carries this dimension.

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 ('Inspect') and resource ('one physical table') and then enumerates exactly what is returned: all columns including unmapped ones, keys, junction flag, attached Terms and attributes, join relationships, and SQL attributes. The word 'physical' plus 'unmapped columns' cleanly separates it from the semantic/ontology siblings like get_term.

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 an explicit when-to-use ('verify raw table structure or unmapped columns') and names three alternatives with the condition that selects each: get_term for business meaning, get_query_context for multi-Term SQL generation, get_source for provenance. This is the full when/when-not/alternatives pattern.

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