Create MCP server tool approval

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

Parâmetros de caminho

mcp_server_idstringObrigatório
ID of the MCP Server.

Cabeçalhos

xi-api-keystringOpcional

Solicitação

This endpoint expects an object.
tool_namestringObrigatório
The name of the MCP tool
tool_descriptionstringObrigatório
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_policyenumOpcionalPadrão é requires_approval

The tool-level approval policy

Valores permitidos:

Resposta

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.

Erros

422
Tool Approvals Create Request Unprocessable Entity Error