Skip to main content
Glama

analyze_table

Determines a table's dimensional-modeling role (fact or dimension), grain keys, SCD recommendation, and bus-matrix cell value from a graph table name or CREATE TABLE DDL.

Instructions

判定一张表的角色(fact/dimension)、粒度键、SCD 建议与总线矩阵格值。

Args: table: 图谱中的表名(如 dt_batch)。与 ddl 二选一。 ddl: CREATE TABLE 文本(table 不在图谱时使用)。

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

Input Schema

NameRequiredDescriptionDefault
ddlNo
tableNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose what the analysis yields (role classification, grain, SCD advice, matrix cell) — meaningful behavioral context. It never states that the operation is non-mutating, requires no permissions, or how expensive/long-running the analysis is, and it is silent on what happens if neither or both arguments are supplied.

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 summary sentence is front-loaded and the per-argument lines are terse, each adding real information. The raw docstring formatting (Args block, Chinese parentheticals) is slightly rough but costs no comprehension.

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-value explanation is not needed; that leaves purpose, both parameters, and their exclusivity rule, all of which are covered. For a two-optional-parameter reference/analysis tool with no annotations, nothing an agent needs in order 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.

Parameters4/5

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

Schema coverage is 0% (bare titles plus empty-string defaults), so the description must compensate, and it largely does: `table` is a graph table name with the concrete example dt_batch, `ddl` is CREATE TABLE text used when the table is absent from the graph, and the two are mutually exclusive. It does not state the fallback when neither is provided or precedence when both are, which keeps it short of a 5.

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?

The first line gives a specific verb and object plus the exact deliverables: table role (fact/dimension), grain key, SCD recommendation, and bus-matrix cell value. An agent can tell this is a modeling-analysis tool rather than a lookup, though it never names a sibling (e.g. bus_matrix or check_conformed_facts) to disambiguate overlapping outputs.

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

Usage Guidelines3/5

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

It gives clear guidance at the parameter level — use `table` for a name already in the graph, `ddl` when the table is not in the graph, and pick exactly one — which is genuinely useful invocation guidance. It provides no tool-level guidance about when to reach for this versus siblings that also surface bus-matrix or conformed-fact information, so routing is left to inference.

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