Skip to main content
Glama

三域医研 · 科研算法引擎 (SanYu Research Engine)

Cox-Stuart 趋势检验

act_cox_stuart
Read-only

Cox-Stuart 趋势检验 用配对符号检验判断时间序列有无趋势,不依赖分布假设,适合小样本 趋势方向与 p 值

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": {
      "series": "<series>"
    },
    "name": "act_cox_stuart"
  }
}

Input Schema

NameRequiredDescriptionDefault
seriesYes按时间先后排列的数值序列(一维数组,至少 4 个观测)。用于检验单调趋势;顺序传错会得到相反的结论。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / series / description
      Previous value: -"按时间先后排列的数值序列"New value: +"按时间先后排列的数值序列(一维数组,至少 4 个观测)。用于检验单调趋势;顺序传错会得到相反的结论。"
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds value beyond that by disclosing the statistical assumptions (distribution-free, suited to small samples) and, since no output schema exists, what the call returns (trend direction and p-value).

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?

One compact, front-loaded sentence that leads with the method name and packs assumptions and output into the remainder. Minor deduction for run-on phrasing with thin punctuation that makes the output clause easy to skim past.

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?

For a single-parameter, read-only statistical test with annotations and no output schema, the description covers method, assumptions, sample-size fit, and return values. 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.

Parameters3/5

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

Schema description coverage is 100% and the single 'series' parameter is already fully documented in the schema, including the ordering warning. The description adds no further parameter-level detail, 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?

Names the specific method (Cox-Stuart 趋势检验) and states its mechanism (配对符号检验) and target (时间序列有无趋势), so the operation is unambiguous. It does not name or contrast with the closest sibling trend test (act_mann_kendall), leaving the agent to infer which trend test applies when.

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?

The phrase '适合小样本' and '不依赖分布假设' implicitly tell the agent when this test is appropriate, which is real guidance. However, there is no explicit when-not condition and no named alternative (e.g., a rank-based trend test) to route between, so the choice is left partly 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.