Skip to main content
Glama

开题:新建项目并绑定密钥 / Create project

sanyu_create_project

Create a research project owned by this key's account and, by default, bind this key to it so later actions can persist results into it. 什么时候必须用:接下来要调的动作需要 project_id —— 标书链(proposal_create → proposal_read → materials_fill → write_section / write_all)、一键出文(writing_one_click)、方案进度(design_save_step / design_next_step / design_export)、决策仲裁(decision_arbitration)、取项目与数据集(my_data / enrich)。纯算力 key 没有 project_id ⇒ 那些动作会被只读事务拒绝(写入失败)。调用一次(bind_key 默认 true)之后,同一把 key 立即变成项目级 key,后续动作不用再传 project_id(服务端按密钥绑定值强制注入,跨项目写入不可能)。⚠️ 一把 key 只能绑一个项目;要开第二个课题请另签发一把 key。⚠️ 若你只想做纯计算、不需要落库,就不要调用本工具(绑了之后结果会开始落库)。USE WHEN: 用户说「帮我开个课题 / 新建项目 / 建个标书」;或前一步动作返回 need_project_key。US English: create a project and bind this key to it.

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": {
      "title": "<title>"
    },
    "name": "sanyu_create_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYes课题/项目标题(≥4 字,建议直接用用户的课题名)
bind_keyNo是否把当前密钥绑到新项目(默认 true,后续动作才能落库)。绑了就不能再用这把 key 开第二个项目。
outcome_typeNo主要结局类型,可选:continuous / binary / survival / time_to_event / ordinal
project_typeNoclinical 或 basic;不传则按 study_design 推断
study_designNo研究设计,可选:animal、basic_research、case_control、cohort、cross_sectional、diagnostic、in_vitro、rct、systematic_review。不传则留空,不要在用户没说时替用户编一个。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), it discloses the key state mutation ('同一把 key 立即变成项目级 key'), server-side forced injection of the binding, and the hard one-key-one-project constraint. It also warns that binding causes results to start persisting to the database, which is exactly the kind of irreversible side effect the annotations do not convey.

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 core capability and its default behavior are front-loaded in the first sentence, and the required-usage block follows logically. It is long and repeats the same guidance in Chinese then again in a short US English tail, which adds bulk, but every sentence carries operative information (prerequisites, failure modes, constraints).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter mutation tool with no output schema, it covers the essential agent-facing facts: when the call is mandatory, when it must be avoided, the irreversible key-binding consequence, and that later calls no longer need project_id. Nothing an agent needs in order to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds real meaning by tying bind_key's default-true behavior to the consequence that the key can never open a second project. It reinforces that study_design should be left empty rather than fabricated, though this largely restates the schema and the remaining parameters get no extra treatment beyond what the schema already says.

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 first sentence names a specific verb and resource ('Create a research project'), states ownership scope ('owned by this key's account'), and a default side effect ('bind this key to it'). It also makes clear what the tool is not for (pure-compute keys), so an agent can distinguish it from siblings like proposal_create or sanyu_list_actions.

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?

It enumerates concrete downstream actions that require project_id (proposal chain, writing_one_click, design_save_step/next_step/export, decision_arbitration, my_data/enrich) and explains the failure mode without it ('那些动作会被只读事务拒绝'). It also gives an explicit when-not-to-use rule: skip this tool if the user only wants pure computation, plus trigger phrases such as '帮我开个课题' or a prior need_project_key response.

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