Create MCP server tool approval

Add approval for a specific MCP tool when using per-tool approval mode.

路径参数

mcp_server_idstring必需
ID of the MCP Server.

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
tool_namestring必需
The name of the MCP tool
tool_descriptionstring必需
The description of the MCP tool
input_schemamap from strings to any可选

The input schema of the MCP tool (the schema defined on the MCP server before ElevenLabs does any extra processing)

approval_policyenum可选默认为 requires_approval

The tool-level approval policy

允许的值:

响应

Successful Response
idstring
configobject
metadataobject
The metadata of the MCP Server
access_infoobject可选
The access information of the MCP Server
dependent_agentslist of objects可选
List of agents that depend on this MCP Server.

错误

422
Tool Approvals Create Request Unprocessable Entity Error