act_classification_report
【分类性能报告】 用户要看准确率/敏感度/特异度/PPV/NPV 全套指标 返回:分类指标全套 (真实算法引擎执行,非大模型生成)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | Yes | 真实标签 | |
| threshold | No | 判定阈值 | |
| predictions | Yes | 预测结果(0/1) |
【分类性能报告】 用户要看准确率/敏感度/特异度/PPV/NPV 全套指标 返回:分类指标全套 (真实算法引擎执行,非大模型生成)
| Name | Required | Description | Default |
|---|---|---|---|
| labels | Yes | 真实标签 | |
| threshold | No | 判定阈值 | |
| predictions | Yes | 预测结果(0/1) |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds a real behavioral claim, namely that results come from an actual algorithm engine rather than LLM generation, which helps trust calibration. It still says nothing about validation failures, mismatched-length handling, or how threshold interacts with string labels.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Very short and front-loaded: the bracketed label states the resource, then the use case, then the return value. The only redundancy is that the metric list is effectively stated twice (use case and 'returns' clause), but nothing is padded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, the description usefully names the returned metric set, which is the main thing an agent needs. For a three-parameter statistical tool it is nonetheless thin: input-format expectations for labels versus 0/1 predictions and the effect of threshold are left entirely to the schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so labels, predictions, and threshold are already documented in the schema, and the baseline of 3 applies. The description mentions no parameter-level detail at all, and notably omits any explanation of what threshold does when predictions are described as 0/1 strings.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Names the resource (classification performance report) and enumerates the concrete outputs: accuracy, sensitivity, specificity, PPV, NPV. An agent can tell this is a binary/multiclass metric computation rather than a curve fit or a statistical test, but the description never contrasts it with nearby tools such as act_roc, act_delong, or act_calibration.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The phrase '用户要看准确率/敏感度/特异度/PPV/NPV 全套指标' implies the trigger condition: use it when the user wants the full panel of classification metrics. However, there is no explicit statement of when to prefer act_roc or act_delong, no prerequisites (paired label/prediction arrays of equal length), and no exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.