用途:该技能用于向 MetaboLights 提交精简请求,支持研究检索(study discovery)与获取研究级代谢组学元数据,适合需要简洁 MetaboLights 摘要的场景。
主要能力与用法:所有 MetaboLights 调用统一使用 scripts/rest_request.py,基础地址为 base_url=https://www.ebi.ac.uk/metabolights/ws。浏览档案时从 studies 路径开始,针对特定记录使用 studies/<MTBLS accession>。研究检索应保持范围窄并分页,避免拉取超大页面。长对话中应重新发起请求,而不是依赖较早的工具输出。
输入方式:从 stdin 读取一个 JSON 对象。必填字段为 base_url、path;可选字段包括 method、params、headers、json_body、form_body、record_path、response_format、max_items、max_depth、timeout_sec、save_raw、raw_output_path。
输出:默认从脚本 JSON 返回简洁的 markdown 摘要;仅当用户明确要求机器可读输出时才返回原始 JSON。成功时返回 ok、source、path、method、status_code、warnings 以及精简记录或摘要;save_raw=true 时使用 raw_output_path。失败时返回 ok=false 及 error.code、error.message。
执行示例:echo '{"base_url":"https://www.ebi.ac.uk/metabolights/ws","path":"studies","record_path":"content","max_items":10}' | python scripts/rest_request.py
限制:资料未提供更多运行时引用,导入包应限于本文件与 scripts/rest_request.py;其余功能、收费、平台与效果信息暂未提供。