Skip to main content
Glama

Survival analysis (KM + Cox) / 生存分析(KM/Cox 全流程)

survival_cox
Read-only

Survival analysis (KM + Cox) / 生存分析(KM/Cox 全流程) | USE WHEN: follow-up time and event data: survival curves, median survival, hazard ratios, log-rank, multivariable Cox | ALIASES: 生存分析, Cox回归, HR, 风险比, log-rank, 中位生存, 随访, 生存率, hazard ratio | RETURNS: 生存曲线、中位生存、HR、log-rank P

Input Schema

NameRequiredDescriptionDefault
dataYes逐行数据,每行含时间/事件/分组/协变量
time_colNo随访时间列名
event_colNo结局事件列名(1=事件)
group_colNo分组列名
analysis_typeNokm 或 cox
covariate_colsNoCox 协变量列名

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the return payload (curves, median survival, HR, log-rank P), which is genuinely useful, but says nothing about modeling assumptions such as proportional hazards, censoring coding, or minimum sample requirements.

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 pipe-delimited layout is front-loaded and scannable: purpose, use condition, aliases, returns. The alias list is long but serves search/retrieval value in both languages; no sentence is filler.

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?

For a six-parameter statistical modeling tool the definition covers what it does, when to use it, and what it returns, with no output schema needed for return values. It omits the conditional parameter relationships (cox requiring covariate_cols, group_col being optional for multivariable models) and any note about reference-group handling, which an agent must infer.

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 each of the six parameters has a Chinese description covering time, event coding (1=event), group, analysis type (km/cox), and covariate columns. The description adds no guidance beyond the schema — notably it never explains which parameters are required under analysis_type='cox' versus 'km', though the baseline of 3 is appropriate when the schema does the work.

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 method set (KM curves plus multivariable Cox) and enumerates concrete outputs — survival curves, median survival, hazard ratios, log-rank P — so the resource is unambiguous. It does not, however, distinguish itself from the sibling kaplan_meier or animal_survival_km, which an agent could reasonably confuse with this tool.

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

Usage Guidelines4/5

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

The 'USE WHEN: follow-up time and event data' clause gives a clear triggering condition (time-to-event data with censoring, subgroup comparison, multivariable adjustment). It stops short of explicit exclusions or naming the simpler KM-only sibling as the alternative for single-curve cases.

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