Skip to main content
Glama

infer_table_relation

Read-only

Infer proportional column relations (B ≈ A × k) in numeric tables, find baseline anchor and coefficients, and flag deviating rows. Use to reverse-engineer derived formula structures.

Instructions

表内列间派生关系推断(确定性拟合):判断「B 列 ≈ A 列 × k」的系数关系并标出偏离行(取整容限内免误报),或对整表数值列两两配对、自动发现基准锚点列与各列系数。还原「各装备属性 = 基准 × 装备系数」这类生成结构时用;发现系数后可与系数表(如 read_table 装备划分)对照确认同源性。列内时序规律(随行序怎么走)用 infer_column_rule,本工具管列与列的结构。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYes目标表名(来自 list_tables)
columnsNo参与列。恰 2 列时输出该对的详细关系;多列为子集两两;缺省为全表数值列自动两两
thresholdPctNo相对容差百分比(默认 1,与取整容限取大)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations provide readOnlyHint=true so the agent knows this is a read-only operation. The description adds behavior such as '确定性拟合', tolerance handling (取整容限内免误报), and default behavior (auto-pairwise on all numeric columns) which goes beyond the schema. However, it doesn't elaborate on output format or failure behavior, but annotations cover the safety profile.

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

Conciseness3/5

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

The description is dense and packed with domain-specific terminology in Chinese, but it front-loads the core function first. It includes example structures and sibling references but could be slightly more concise. It earns a 3 because while informative, it's somewhat dense and may bury the simplest summary.

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?

Given the tool's moderate complexity, the description explains the two modes (pair-specific vs auto-pairwise), default behavior, tolerance semantics, and relationship to sibling tools. There's no output schema, so the description carries the burden of conveying behavior, and it does so adequately. Minor gaps: no explicit statement of what 'deviation rows' output looks like, but context is otherwise complete.

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 documents all three parameters. The description adds context: columns default to all numeric columns, thresholdPct tolerance semantics (relative tolerance, max with rounding tolerance). This is useful but the baseline with full schema coverage is 3.

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?

The description clearly states the tool's purpose: infer linear column relationships (B ≈ A × k) and identify deviating rows, or automatically discover baseline anchor columns and coefficients across numeric columns. It distinguishes this from infer_column_rule explicitly, making its scope unambiguous.

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?

The description explicitly states when to use it: for reconstructing generation structures like 'equipment attributes = baseline × equipment coefficient', and mentions comparing results with coefficient tables like read_table. It explicitly excludes column-internal temporal patterns, directing to infer_column_rule.

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