Skip to main content
Glama

Out-of-trend check

stab_detect_oot
Read-onlyIdempotent

Detect out-of-trend stability results that remain within specification by comparing new batch data against historical batches using regression, time-point, or slope controls.

Instructions

Flag stability results that are within specification but out of trend versus historical batches.

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": {
      "new_points": "<new_points>"
    },
    "name": "stab_detect_oot"
  }
}

Input Schema

NameRequiredDescriptionDefault
alphaNoTwo-sided alert level (0.01 = 99% prediction interval).
methodNoregression_control: prediction interval around the historical regression; by_time_point: historical results at the same time point; slope_control: new batch slope vs historical slopes.regression_control
historicalNoLong-term results, one per row.
new_pointsYesResults to check (new batch / latest pull).
attribute_nameNoattribute
historical_csvNoAlternative to points: CSV with header batch,time_months,value.

Output Schema

NameRequiredDescriptionDefault
alphaYes
checksYes
methodYes
summaryYesOne or two sentence plain-language answer.
findingsNo
citationsYes
disclaimerNoDecision support only. Verify against the current guideline and your site SOPs.
provenanceYes
assumptionsNo
n_historicalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so the safety profile is covered. The description usefully adds that only in-specification results are considered (it is not an OOS test), but it does not say what happens when 'historical' is left null, what minimum history is required, or how the three methods differ in output.

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 front-loaded sentence with no filler; the qualification 'within specification but out of trend' is the highest-value information and appears immediately. Slight room to add one clause on the historical/null case without bloat.

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?

With an output schema present, return values need not be described, and annotations cover safety. The description is nearly complete for a 6-parameter statistical check, though it omits what happens when 'historical' is null and whether historical_csv can substitute entirely.

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 83%, so the schema already explains alpha, method, historical, new_points and historical_csv in detail. The description adds no parameter-level meaning beyond restating the historical comparison, so the baseline of 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?

States a specific verb ('flag') and a precisely scoped resource ('stability results that are within specification but out of trend versus historical batches'), which is clearly distinct from shelf-life or storage-condition siblings. It stops short of naming any sibling to route against, so a 4 rather than a 5.

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 'versus historical batches' implies this is used when you already have new stability results and comparable historical data, but there is no explicit when-to-use, when-not-to-use, or named alternative. Guidance is inferable rather than stated.

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