Skip to main content
Glama
Auto Ontology MCP

Auto Ontology MCP

Suggest reusable SQL attributes

suggest_sql_attributes
Read-onlyIdempotent

Mine reusable SQL attributes—measures, filters, dimensions, and join patterns—from executed queries and profiles, returning candidates and a more_available count for semantic modeling.

Instructions

Mine candidate reusable SQL attributes (measures, filters, dimensions, and join patterns) from executed queries, verified examples, bridge tables, and column profiles, alongside promotion rules. Use after Terms are modeled and persist worthwhile candidates with save_sql_attribute; use get_term to inspect attributes already saved on a Term. Returns candidates and a more_available count.

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": "suggest_sql_attributes"
  }
}

Input Schema

NameRequiredDescriptionDefault
termNoRestrict candidate mining to one Term name, synonym, or id.
limitNoMaximum candidate SQL attributes to return (>= 1).
datasourceNoDatasource name. Optional when only one datasource is registered.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.6.2
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum candidates."New value: +"Maximum candidate SQL attributes to return (>= 1)."
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / term / description
      Previous value: -"Limit to one Term."New value: +"Restrict candidate mining to one Term name, synonym, or id."
  2. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and a closed-world scope, so the safety profile is covered. The description adds value beyond that by disclosing the output shape ('candidates and a more_available count') and the ordering constraint relative to Term modeling. It stops short of saying anything about cost or runtime of mining across a datasource, which for a scan-style tool would be useful.

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?

Three sentences, front-loaded with the core action and sources, then prerequisites and alternatives, then the return shape. Dense but every sentence carries information; 'alongside promotion rules' is the one slightly opaque phrase that could be tightened.

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

Completeness4/5

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

With a full output schema and complete annotations, the description only needs to cover intent, ordering, and handoffs — which it does. The remaining gap is the unexplained 'promotion rules' concept, which an agent may not know how to act on without opening the output.

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 description coverage is 100%, so all three parameters (term, limit, datasource) are already documented with defaults and constraints. The description adds no syntax, format, or edge-case detail beyond what the schema provides, so the baseline 3 applies.

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 — 'mine candidate reusable SQL attributes' — and enumerates both the artifact types (measures, filters, dimensions, join patterns) and the evidence sources (executed queries, verified examples, bridge tables, column profiles). It is clearly distinguishable from save_sql_attribute and get_term, which it names as the write and inspection counterparts.

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 prerequisite ('Use after Terms are modeled') and routes each follow-up action: persist with save_sql_attribute, inspect existing attributes with get_term. The when-to-use condition and the alternatives are both stated rather than inferred.

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