创建 MCP 服务器工具审批

使用按工具审批模式时,为指定 MCP 工具添加审批。

路径参数

mcp_server_idstring必需

MCP 服务器 ID。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
tool_namestring必需

MCP 工具名称

tool_descriptionstring必需

MCP 工具的描述

input_schemamap from strings to any可选

MCP 工具的输入架构(ElevenLabs 进行额外处理前在 MCP 服务器上定义的架构)

approval_policyenum可选默认为 requires_approval

工具级审批策略

允许的值:

响应

成功响应

idstring
configobject
metadataobject

MCP 服务器的元数据

access_infoobject or null可选

MCP Server 的访问信息

dependent_agentslist of objects可选

依赖此 MCP Server 的智能体列表。

错误

422
Unprocessable Entity Error