Skip to main content
Glama
Auto Ontology MCP

Auto Ontology MCP

Save business Terms for a table

save_table_terms
DestructiveIdempotent

Saves business terms and column mappings for one scanned database table, replacing prior terms and validating atomically so invalid columns, duplicates, or name clashes save nothing.

Instructions

Save business Terms and column mappings for one scanned database table. Use for tables returned by get_modeling_worklist; use update_term to tweak a single existing Term, define_entity for knowledge store tables, and save_concept for prose definitions. Replaces the table's previous Terms (same-named Terms update; unreferenced Terms without SQL attributes are removed; unassigned candidate columns attach to the first Term). Validates atomically so unknown columns, duplicates, or cross-table name clashes save nothing and return every error. New Terms start as draft.

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>",
      "terms": "<terms>"
    },
    "name": "save_table_terms"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesPhysical table name, schema-qualified if needed (e.g. 'sales.orders').
termsYesProposed business Terms for this table (usually exactly one Term per table).
datasourceNoDatasource name. Optional when only one datasource is registered.
is_junctionNoSet true only when each row solely associates two or more entities (bridge table).
column_descriptionsNoOptional {column: one-sentence description} map for non-obvious columns.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.6.2
    • changedInput schema / properties / column_descriptions / description
      Previous value: -"Optional {column: one-sentence description} for non-obvious columns."New value: +"Optional {column: one-sentence description} map for non-obvious columns."
    • changedInput schema / properties / is_junction / description
      Previous value: -"True if each row only associates two or more entities (bridge table)."New value: +"Set true only when each row solely associates two or more entities (bridge table)."
    • changedInput schema / properties / table / description
      Previous value: -"Table name, schema-qualified if needed (e.g. 'sales.orders')."New value: +"Physical table name, schema-qualified if needed (e.g. 'sales.orders')."
    • changedInput schema / properties / terms / description
      Previous value: -"Usually exactly one Term per table."New value: +"Proposed business Terms for this table (usually exactly one Term per table)."
  2. First observedv0.3.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description earns credit beyond them by spelling out what is destroyed (previous Terms, unreferenced Terms without SQL attributes), how same-named Terms merge, how unassigned candidate columns are attached, and that validation is atomic so failures persist nothing. It also notes new Terms start as draft, which annotations cannot convey.

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?

Every sentence carries load: purpose first, then sibling routing, then replace/merge semantics, then failure behavior, then the draft status of new Terms. No filler or restatement of structured fields.

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 an output schema present and full parameter coverage, the description only needed the behavioral layer, and it supplies it: mutation semantics, validation atomicity, merging rules, and resulting Term state. An agent can call this correctly without further inference.

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 would be 3, but the description adds real meaning about how the terms and columns parameters behave on save: same-named Terms update, unassigned candidate columns attach to the first Term, and duplicates or cross-table clashes abort the whole write. That goes beyond the per-field schema text, though it does not explain the optional datasource, is_junction, or column_descriptions inputs.

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 and resource with scope: 'Save business Terms and column mappings for one scanned database table.' It is immediately distinguishable from update_term, define_entity, and save_concept, which it names.

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?

Explicit routing: use this for tables returned by get_modeling_worklist, use update_term to tweak a single existing Term, define_entity for knowledge store tables, save_concept for prose definitions. The when-to-use and when-to-use-something-else conditions are both given.

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