Create MCP server tool approval

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

Parametry ścieżki

mcp_server_idstringWymagany
ID of the MCP Server.

Nagłówki

xi-api-keystringOpcjonalny

Żądanie

This endpoint expects an object.
tool_namestringWymagany
The name of the MCP tool
tool_descriptionstringWymagany
The description of the MCP tool
input_schemamap from strings to anyOpcjonalny

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

approval_policyenumOpcjonalnyDomyślnie requires_approval

The tool-level approval policy

Dozwolone wartości:

Odpowiedź

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

Błędy

422
Tool Approvals Create Request Unprocessable Entity Error