Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as 三域医研 · 科研算法引擎 (SanYu Research Engine). If you published it, claim ownership there.

回归诊断(残差/杠杆/共线性)

act_reg_diagnostics
Read-only

回归诊断(残差/杠杆/共线性) 跑完线性回归后要判断模型假设是否成立:残差是否正态、有无强影响点 残差统计、杠杆值、Cook 距离等诊断量

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": {
      "X": "<X>",
      "y": "<y>"
    },
    "name": "act_reg_diagnostics"
  }
}

Input Schema

NameRequiredDescriptionDefault
XYes自变量矩阵(二维数值数组,每行一个观测、每列一个自变量,不含截距列)。行数必须等于 y 的长度,且观测数需大于自变量个数。
yYes因变量(一维数值数组,长度必须等于 X 的行数)。返回残差、杠杆值、Cook 距离与 Durbin-Watson 等诊断量。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / X / description
      Previous value: -"自变量矩阵,二维数组,每行一个观测、每列一个自变量"New value: +"自变量矩阵(二维数值数组,每行一个观测、每列一个自变量,不含截距列)。行数必须等于 y 的长度,且观测数需大于自变量个数。"
    • changedInput schema / properties / y / description
      Previous value: -"因变量,长度须等于 X 的行数"New value: +"因变量(一维数值数组,长度必须等于 X 的行数)。返回残差、杠杆值、Cook 距离与 Durbin-Watson 等诊断量。"
  2. Added

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already declare this a read-only, closed-world, non-destructive computation, so the description only needs to add output substance. It does partly: residual statistics, leverage values and Cook's distance are disclosed, and the schema mentions Durbin-Watson. But 'collinearity' appears only in the repeated title with no indication of what is computed (VIF? condition number?), and it is unclear whether a normality test is actually run versus merely implied by the question posed.

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 short but not cleanly structured: it opens by duplicating the title string, then runs two clauses together without punctuation ('...有无强影响点 残差统计、杠杆值...'), which blurs where the purpose ends and the output list begins. Content is not padded, but the duplication and run-on phrasing cost it.

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

Completeness3/5

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

With two required inputs, no output schema and simple annotations, an agent needs the return inventory and any preconditions spelled out. The precondition (a fitted linear model, sufficient observations) and most return values are covered, but the collinearity half of the stated scope and any threshold/interpretation guidance are absent.

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% with only two parameters, so the schema already documents X (matrix without intercept column, rows must match y, n > p) and y fully. The description adds no format, shape, or constraint detail beyond what the schema states, so the baseline 3 applies.

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 description names a specific verb+resource: computes regression diagnostics for a linear model (residuals, leverage, Cook's distance). It is far more concrete than the bare tool name, though the opening clause simply repeats the title verbatim and it never contrasts itself with related siblings such as outlier or influence tools.

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 one explicit trigger — 'after fitting a linear regression, when you need to check whether model assumptions hold' — which is genuine when-to-use guidance. However, there is no when-not guidance and no named alternative for adjacent tasks (e.g. outlier detection vs. influence diagnostics), leaving routing to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources