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