Create MCP server tool approval

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

Parámetros de ruta

mcp_server_idstringRequerido
ID of the MCP Server.

Encabezados

xi-api-keystringOpcional

Solicitud

This endpoint expects an object.
tool_namestringRequerido
The name of the MCP tool
tool_descriptionstringRequerido
The description of the MCP tool
input_schemamap from strings to anyOpcional

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

approval_policyenumOpcionalValor predeterminado: requires_approval

The tool-level approval policy

Valores permitidos:

Respuesta

Successful Response
idstring
configobject
metadataobject
The metadata of the MCP Server
access_infoobjectOpcional
The access information of the MCP Server
dependent_agentslist of objectsOpcional
List of agents that depend on this MCP Server.

Errores

422
Tool Approvals Create Request Unprocessable Entity Error