Skip to main content
Glama

三域医研 · 科研算法引擎 (SanYu Research Engine)

上传数据换 file_id / Upload data → file_id

sanyu_upload_data

Upload the user's own dataset and get a file_id for downstream actions. 传一次数据,拿到 file_id,再传给 table_one_baseline / dataset_profile / dataset_columns / MR(暴露、结局各一个 file_id)/ 组学与代谢组动作。支持内联 CSV/TSV 文本(content_text,首行必须是列名)或 base64(content_base64,用于 xlsx/sav/dta/sas7bdat/rds)。二选一。文件归属当前密钥的账号,默认 72 小时过期,可随时 DELETE /api/open/v1/files/{file_id} 删。不要用示例数据顶替用户数据:那会让下游产出编造的表格与图。

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": {
      "filename": "<filename>"
    },
    "name": "sanyu_upload_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo备注,便于 list_my_data_files 辨认这份数据是什么
filenameYes文件名,扩展名决定解析器:.csv / .tsv / .txt / .xlsx / .xls / .sas7bdat / .sav / .dta / .rds
ttl_hoursNo保留小时数,默认 72,最长 720
content_textNo文件文本内容(CSV 直接贴,首行必须是列名)。与 content_base64 二选一
content_base64No文件二进制内容的 base64(二进制格式用)。与 content_text 二选一

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / filename / description
      Previous value: -"文件名,扩展名决定解析器:.csv / .xlsx / .xls / .sav / .dta / .sas7bdat / .rds"New value: +"文件名,扩展名决定解析器:.csv / .tsv / .txt / .xlsx / .xls / .sas7bdat / .sav / .dta / .rds"
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only tell the agent this is a non-read-only, closed-world, non-destructive write. The description adds ownership semantics ('文件归属当前密钥的账号'), retention ('默认 72 小时过期', matching ttl_hours max 720), and the exact cleanup endpoint DELETE /api/open/v1/files/{file_id}. That is real behavioral context an agent could not derive from the annotations.

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?

Front-loaded with the outcome (upload → file_id), then format choice, then ownership/expiry, then the warning. Every sentence carries information, but the full bilingual duplication of every clause roughly doubles the length for marginal gain.

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?

No output schema exists, and the description still covers the return value (file_id), its downstream reuse, retention, and deletion. It omits payload-size limits and what an upload failure returns, which are the remaining gaps for a single-required-param upload tool.

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 filename/note/ttl_hours/content fields are already documented at the parameter level. The description reinforces the important constraint (first row must be column names) and the binary-format split, but adds little that the schema does not already say, so the baseline 3 applies.

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?

States a specific verb+resource+return value: 'Upload the user's own dataset and get a `file_id` for downstream actions'. It also names the exact sibling consumers (table_one_baseline / dataset_profile / dataset_columns / MR), so an agent can place it in a workflow without opening another schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing rules: content_text for inline CSV/TSV, content_base64 for xlsx/sav/dta/sas7bdat/rds, with '二选一' enforcing the either/or. It also states the anti-pattern ('不要用示例数据顶替用户数据') and why, which is genuine when-not guidance rather than a restatement.

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.