Skip to main content
Glama

PSI model stability / 模型稳定性 PSI

psi_stability
Read-onlyIdempotent

PSI model stability / 模型稳定性 PSI | USE WHEN: population stability index between expected and observed score distributions | ALIASES: PSI, 模型稳定性, 群体稳定性, population stability, 漂移 | RETURNS: PSI 值与稳定性判断

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": {
      "expected_probs": "<expected_probs>",
      "observed_probs": "<observed_probs>"
    },
    "name": "psi_stability"
  }
}

Input Schema

NameRequiredDescriptionDefault
n_binsNo分箱数,默认 10。判定口径:PSI < 0.1 无漂移;0.1~0.25 轻度;>0.25 显著。
expected_probsYes开发集(建模期)的预测概率数组,**每个值须在 0~1**。分箱固定按 0~1 等分,超出范围的值会被直方图丢掉而不报错。NaN 自动剔除。
observed_probsYes上线后(验证期)的预测概率数组,同样 0~1。**长度可以与 expected 不同** —— PSI 比的是各箱占比,不是逐例配对。

Output Schema

NameRequiredDescriptionDefault
costNo
resultYes业务字段,键见 description 的 RETURNS 段
successYes
data_sourceYeslocal_computation|external_corpus|llm_generated|user_data|pending
engine_statusYesok|queued|error|unavailable|not_run

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed3 schema fields changed
    • changedInput schema / properties / expected_probs / description
      Previous value: -"开发集概率"New value: +"开发集(建模期)的预测概率数组,**每个值须在 0~1**。分箱固定按 0~1 等分,超出范围的值会被直方图丢掉而不报错。NaN 自动剔除。"
    • changedInput schema / properties / n_bins / description
      Previous value: -"分箱数"New value: +"分箱数,默认 10。判定口径:PSI < 0.1 无漂移;0.1~0.25 轻度;>0.25 显著。"
    • changedInput schema / properties / observed_probs / description
      Previous value: -"验证集概率"New value: +"上线后(验证期)的预测概率数组,同样 0~1。**长度可以与 expected 不同** —— PSI 比的是各箱占比,不是逐例配对。"
  4. Added

TDQS

A3.6/5.0
Behavior3/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 structurally. The description adds only 'RETURNS: PSI 值与稳定性判断', and since an output schema exists this is largely redundant; it says nothing about edge-case handling or how the stability verdict is derived (that lives in the schema, not the description).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Pipe-delimited, front-loaded with the purpose, then the trigger condition, aliases, and return type. Every segment carries information and there is no filler prose.

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 and full schema-level parameter documentation, the description only needs to establish purpose and trigger, which it does. It is slightly thin on disambiguation from other statistical tools in the catalog, but nothing required to invoke it correctly is missing.

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%, including the 0.1/0.25 threshold semantics for n_bins and the note that value lengths may differ. The description adds no parameter meaning beyond the schema, so the baseline 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?

The description names the specific computation (population stability index between expected and observed score distributions), so the agent knows exactly what the tool produces. It does not distinguish itself from any sibling or state a scope boundary, which keeps it out of 5 territory.

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 'USE WHEN' clause gives a condition, but that condition merely restates what the tool computes rather than telling the agent when to prefer it over alternatives or when not to call it. No exclusions, prerequisites, or competing siblings are mentioned.

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