Create MCP server tool approval

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

Paramètres de chemin

mcp_server_idstringRequis
ID of the MCP Server.

En-têtes

xi-api-keystringOptionnel

Requête

This endpoint expects an object.
tool_namestringRequis
The name of the MCP tool
tool_descriptionstringRequis
The description of the MCP tool
input_schemamap from strings to anyOptionnel

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

approval_policyenumOptionnelPar défaut requires_approval

The tool-level approval policy

Valeurs autorisées:

Réponse

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

Erreurs

422
Tool Approvals Create Request Unprocessable Entity Error