Skip to main content
Glama

统计复算包(一次性下载)/ Reproducibility bundle

sanyu_get_repro_bundle
Read-only

Build a self-contained reproducibility zip (clean data + analysis.py + analysis.R + expected_output.json + manifest.sha256 + README) and return a ONE-TIME download URL. Third parties can re-run the script and compare against the expected output. 生成统计复算包并给一次性下载链接;第三方执行包内脚本即可自行复算并与期望输出比对。 | USE WHEN: 用户要『能自己复算』『给审稿人数据+代码』『复现这个结果』 | ALIASES: 复算包, 可重复, reproducibility, repro bundle, 数据+代码, 归档 | RETURNS: 一次性下载 URL + 方法名 + 行数 + 数据 sha256 | 注意: 需要 API 密钥(结果要归属账号);URL 仅可用一次、默认 30 分钟过期。

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": {
      "method": "<method>",
      "headers": "<headers>",
      "data": "<data>"
    },
    "name": "sanyu_get_repro_bundle"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes数据行(二维数组),必须是**真实参与分析**的行,不要只传预览的前几行 —— 行不全的包与平台结果必然对不上
titleNo可选:包标题
methodYes复算方法 id(先调 sanyu_validation_report 或 GET /api/repro-bundle/methods 查可用清单,如 t_test / logistic / cox / roc_auc / anova_oneway)
paramsNo方法参数(如 {"alpha":0.05}),缺省用方法默认值
headersYes列名数组(首行表头),长度须与每行一致
platform_resultNo可选:平台本次结果,传入后包里会做逐键一致性判定

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the single readOnlyHint annotation, the description discloses the credential requirement (API key needed because results are attributed to an account), the one-time nature of the URL, the default 30-minute expiry, and the exact artifact contents. Those operational constraints are precisely the facts an agent cannot infer from annotations and would otherwise trip over.

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 artifact contents and the one-time URL are front-loaded, followed by USE WHEN, ALIASES, RETURNS and a caveat block, which is easy to scan. The bilingual restatement of the opening sentence duplicates content, costing some space without adding information.

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 6-parameter tool with a nested platform_result object and no output schema, the RETURNS line (URL, method name, row count, data sha256) covers the return shape, and the caveat covers expiry and auth. The remaining gap is minor: nothing says how large a data payload is acceptable or whether generation is synchronous and slow.

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%, so the schema already documents data, headers, method, params, title and platform_result, including the warning that data must be the full analysis rows rather than a preview. The description body itself adds little parameter-level meaning beyond that baseline, so a 3 is appropriate.

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 states a specific verb and artifact: build a self-contained reproducibility zip containing clean data, analysis.py, analysis.R, expected_output.json, manifest.sha256 and README, and return a one-time download URL. It also states the downstream purpose (third parties re-run and compare against expected output), which distinguishes it from data-prep siblings like sanyu_upload_data or sanyu_validation_report.

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?

Explicit USE WHEN triggers are given (user wants to self-recompute, give reviewers data+code, reproduce a result), and the method parameter points to sanyu_validation_report or the methods endpoint as the way to discover valid method ids. What is missing is an explicit when-not clause naming the alternative to pick instead of this tool.

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