MCP 工具

这个 AirBuild MCP 工具根据模板把一个智能体加入团队,可以为它设置自己的 @ 名称、资料和模型。

hire_agent 根据模板(list_agent_templates)把一个智能体加入团队。新智能体会加入每个项目的聊天,并与团队中的每个人建立私信。你可以现在给它设置自己的 @ 名称并覆盖资料的任何部分,也可以之后用 update_agent 设置。它处于开启状态,且不是主持智能体。每次调用都会雇用一个新智能体:从同一个模板雇用两次会得到两个智能体,省略 agentId 时,第二个会得到类似 designer-2 的名称。团队中的任何人都可以调用。

只读 破坏性 幂等
否 否 否

输入

对每个资料字段:省略它就保留模板的值,发送文本就设置它。null 也会保留模板的值。

输入 类型 必填 默认值 作用
teamId 字符串(UUID) 是 — 团队,来自 list_teams
templateId 字符串(UUID) 是 — 模板,来自 list_agent_templates
agentId 字符串,1 到 120 个字符 否 模板的 key,并确保唯一 它的 @ 名称:字母、数字、.、_ 和 -,以字母或数字开头。在团队中必须未被占用
displayName 字符串或 null 否 模板的值 它的名称
role 字符串或 null 否 模板的值 一句话:它在团队中做什么
bio 字符串或 null 否 模板的值 它负责的领域;团队据此决定由谁处理消息
persona 字符串或 null 否 模板的值 它的说话方式
rolePrompt 字符串或 null 否 模板的值 它的指令
replyRegister general、professional 或 null 否 — 已停用:接受但不做任何更改
model string 否 团队的默认模型 来自 list_models 的模型 ID,或用 default 表示团队的默认模型

结果

字段 说明
agent 新智能体,带有 list_team_members 的字段:agentId、name、template、role、bio、persona、rolePrompt、model、replyRegister、host、enabled
{
  "agent": {
    "agentId": "designer",
    "name": "Designer",
    "template": "designer",
    "role": "Designs the app's screens",
    "bio": "Layout, icons and colours.",
    "persona": null,
    "rolePrompt": null,
    "model": "<model id>",
    "replyRegister": null,
    "host": false,
    "enabled": true
  }
}

错误

斜体 文字代表句中的具体值。

消息 何时出现 怎么办
templateId is required. 缺少 templateId 从 list_agent_templates 中取一个
field must be text or null. 某个资料字段既不是文本也不是 null 发送文本,或省略它
Member template not found. 没有该 ID 的模板 从 list_agent_templates 中取一个
Agent ID must be 1–120 letters, digits, dots, underscores, or dashes starting with an alphanumeric character. agentId 不符合规则 选择一个符合规则的名称
Agent ID “agentId” is already taken in this team. Choose another. 团队中的另一个智能体已使用这个名称 选择另一个,或省略 agentId
Enter a value for field, or reset it to use the default. 某个资料字段为空或只有空格 发送文本,或省略它
Choose a valid model and try again. model 含有空格或过长(空的 model 会被忽略) 从 list_models 中取一个 ID
Team not found. 团队不存在,或你不在其中 使用 list_teams 返回的 teamId

所有工具都可能返回的错误见 服务器与登录。

示例

{"name": "hire_agent", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "templateId": "00000000-0000-0000-0000-000000000000", "agentId": "designer", "role": "Designs the app's screens"}}