Skip to main content
Glama

util_survival

Read-only

Kaplan-Meier survival + log-rank — Offline survival / time-to-event analysis (churn, time to failure, time to conversion, clinical follow-up). times= comma list where a trailing + marks a censored observation (e.g. 12+), or pass events= 1/0 flags; groups=NAME:t1,t2+,..;NAME2:.. (2-10 groups) instead of times= to compare curves. Returns the Kaplan-Meier table with Greenwood SE and log(-log) confidence bands, median + CI, quartiles, restricted mean survival time (tau= default = shortest group max time), survival at= chosen times, and for groups the log-rank chi-square, p-value, observed/expected and (2 groups) Peto hazard ratio with CI. confidence=80|90|95|99. Price: $0.003 USDC (Base, via x402).

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": {
      "times": "<times>"
    },
    "name": "util_survival"
  }
}

Input Schema

NameRequiredDescriptionDefault
timesYes6,6,6,7,10,13,16,22,23,6+,9+,10+,11+,17+,19+,20+,25+,32+,32+,34+,35+

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-destructive; the description goes well beyond by disclosing the exact statistical outputs (Greenwood SE, log(-log) CI, median + CI, RMST with default tau, log-rank chi-square, Peto HR) and even the cost ($0.003 USDC via x402). The tau default and the confidence-level choices are behavioral details an agent could not infer from structured fields.

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 description is dense and front-loaded — tool identity first, then input syntax, then return payload — and every clause carries information. It is, however, a single very long sentence-chain that is harder to scan than it could be.

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?

With no output schema and only one schema-documented parameter, the description must carry both input format and return shape, and it does: it enumerates the returned statistics, the default for tau, and the allowed confidence levels. An agent has everything needed to call it and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

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

Although the schema's single `times` parameter has 100% coverage, its description is only a bare example; the prose supplies the crucial syntax that a trailing '+' marks censoring, plus the events= 0/1 alternative, the groups= syntax, and the tau=, at=, and confidence= options. This is meaning well beyond the input schema, though an agent might be surprised that several named parameters are absent from the schema itself.

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 names a specific verb and resource — 'Kaplan-Meier survival + log-rank' — and lists concrete analytic use cases (churn, time to failure, time to conversion, clinical follow-up). Nothing in the sibling list overlaps with this, and an agent can tell immediately what family of task this tool handles.

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?

It clearly states the conditions for each input mode: pass times= for a single curve, or groups=NAME:...;NAME2:... when the goal is to compare curves (2-10 groups). It gives no explicit 'when not to use' or steer toward a different utility (e.g. a forecasting or regression sibling), so it stops short of a 5.

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