Create MCP server tool approval

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

Pfadparameter

mcp_server_idstringErforderlich
ID of the MCP Server.

Header

xi-api-keystringOptional

Anfrage

This endpoint expects an object.
tool_namestringErforderlich
The name of the MCP tool
tool_descriptionstringErforderlich
The description of the MCP tool
input_schemamap from strings to anyOptional

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

approval_policyenumOptionalStandardwert ist requires_approval

The tool-level approval policy

Erlaubte Werte:

Antwort

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

Fehler

422
Tool Approvals Create Request Unprocessable Entity Error