Skip to main content
Glama

Estimate shelf life (ICH Q1E)

stab_estimate_shelf_life
Read-onlyIdempotent

Estimate shelf life or retest period from long-term stability data by testing batch poolability, applying 95% confidence bounds, and capping results with Q1E extrapolation rules.

Instructions

Shelf life / retest period from long-term stability data, the Q1E way.

Tests batch poolability (ANCOVA: slopes, then intercepts, alpha 0.25), picks the most reduced model, finds the earliest time the 95% confidence bound for the mean meets the acceptance criterion (one-sided for a known direction, two-sided for 'both'), takes the shortest batch, and caps the result with the Q1E extrapolation rules when storage and accelerated results are given. Flags curvature, outliers, few batches/time points.

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": {
      "attribute": "<attribute>"
    },
    "name": "stab_estimate_shelf_life"
  }
}

Input Schema

NameRequiredDescriptionDefault
pointsNoLong-term results, one per row.
storageNoIntended storage; with accelerated_significant_change, applies Q1E extrapolation limits.
csv_textNoAlternative to points: CSV with header batch,time_months,value.
attributeYes
return_curveNoReturn fitted line and 95% bound per month, for plotting.
pooling_alphaNoPoolability significance level (Q1E: 0.25).
proposed_shelf_life_monthsNoChecked against what the data support.
accelerated_significant_changeNoQ1A(R2) 'significant change' at the accelerated condition.
intermediate_significant_changeNoNeeded at room temperature when accelerated showed significant change.

Output Schema

NameRequiredDescriptionDefault
curveNo
batchesYes
summaryYesOne or two sentence plain-language answer.
findingsNo
n_pointsYes
attributeYes
citationsYes
n_batchesYes
confidenceYes
disclaimerNoDecision support only. Verify against the current guideline and your site SOPs.
provenanceYes
assumptionsNo
poolabilityYes
residual_dfYes
residual_sdYes
extrapolationNo
long_term_monthsYesX: longest time point in the long-term data.
proposed_supportedNo
proposed_shelf_life_monthsNo
supported_shelf_life_monthsYesWhole months supported: statistics capped by extrapolation rules where assessed.
statistical_shelf_life_monthsYesShortest batch crossing (unrounded).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (read-only, idempotent, closed-world), and the description goes well beyond them: it discloses the ANCOVA pooling sequence at alpha 0.25, picking the most reduced model, the earliest-time criterion, the shortest-batch rule, and Q1E extrapolation capping. It stops short of describing output structure or failure modes, but the method disclosure is unusually rich for a read-only tool.

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?

Purpose is front-loaded in one line, followed by a dense but purposeful method paragraph. No filler sentences, though the second sentence is long and could be split by processing stage (pooling, bound, extrapolation, flags).

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

Completeness4/5

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

For a 9-parameter tool with a nested attribute object and an output schema, the description supplies the methodological context and caveats (curvature, outliers, few batches) an agent needs to trust and interpret the call. It omits nothing critical, given return values are covered by the output schema.

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 89%, so the schema already explains nearly every parameter including direction, transform, and significant-change enums. The description mostly restates that logic (one-sided vs two-sided, extrapolation limits) rather than adding new parameter-level detail, so it sits at the baseline.

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 opening line states a specific resource and output ('Shelf life / retest period from long-term stability data') with the governing standard (Q1E). It is clearly distinct from a plain data-plumbing tool, though it never names or contrasts a sibling such as stab_extrapolation_limit.

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 statistical description (you need long-term data with batches, plus specs and a known direction). The only conditional guidance is 'when storage and accelerated results are given', and there is no explicit when-not-to-use or handoff to an alternative tool.

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