Create MCP server tool approval

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

Path parameters

mcp_server_idstringRequired
ID of the MCP Server.

Headers

xi-api-keystringRequired

Request

This endpoint expects an object.
tool_namestringRequired
The name of the MCP tool
tool_descriptionstringRequired
The description of the MCP tool
input_schemaobjectOptional

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

approval_policyenumOptional

The tool-level approval policy

Allowed values:

Response

Successful Response
idstring
configobject
metadataobject
The metadata of the MCP Server
access_infoobject or null
The access information of the MCP Server
dependent_agentslist of objects or null
List of agents that depend on this MCP Server.

Errors