Skip to main content
Glama

Heurion Clinical Research Tools

Kaplan-Meier Survival & Cox Regression

public_kaplan_meier_survival
Read-onlyIdempotent

计算 Kaplan-Meier 生存曲线、Number at Risk 风险表、Log-rank 检验与单因素 Cox 回归,输出发表级 SVG、中英文结果描述与可复现 R 脚本。

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

Input Schema

NameRequiredDescriptionDefault
csvNo包含时间、结局事件与可选分组列的 CSV/TSV 文本
langNo
titleNo图表标题
recordsNo结构化随访记录数组
time_colNo生存时间列名
event_colNo事件状态列名(1=事件发生,0=删失)
group_colNo分组列名
time_unitNo时间单位(默认 Months)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely new behavioral information: the call returns a publication-grade SVG, a bilingual narrative of results, and a reproducible R script, which matters a lot for a tool with no output schema. It still omits caveats such as censoring assumptions, failures on insufficient events, or the maxItems/row limits.

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?

A single dense sentence that front-loads the analyses and then the deliverables, with zero filler. It is packed but readable; the only weakness is that everything sits in one clause chain rather than separating inputs from outputs.

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 an 8-parameter tool with no required parameters and no output schema, the description does well on the return side by naming the three artifacts. It is incomplete on the input side: it never states that either csv or records must be supplied, nor that group_col is optional (single-arm KM), nor the 500-record ceiling's implications.

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 88%, so the schema itself documents csv, title, time_col, event_col, group_col, and time_unit including the 1=event/0=censored coding. The description adds no parameter-level meaning at all — notably it never says whether csv or records is the required input path or that they are alternatives, which is the one real gap left by the schema.

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 specific verbs and resources: Kaplan-Meier survival curves, Number at Risk table, log-rank test, and univariate Cox regression, plus the outputs (SVG, bilingual text, R script). An agent can immediately tell this is the survival-analysis tool rather than the CONSORT, forest-plot, or Table 1 siblings. It stops short of explicitly contrasting itself with those siblings.

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?

Usage is implied by the capability list — an agent with time-to-event data and a group column would select this. There is no explicit when-to-use statement, no prerequisite (minimum sample size, at least two groups for the log-rank test), and no mention of when another sibling such as the forest-plot generator would be preferred for multivariable modeling.

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.