openapi: 3.0.3 info: title: Retell SDK Add Community Voice Get Mcp Tools API version: 3.0.0 contact: name: Retell Support url: https://www.retellai.com/ email: support@retellai.com license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html servers: - url: https://api.retellai.com description: The production server. security: - api_key: [] tags: - name: Get Mcp Tools paths: /get-mcp-tools/{agent_id}: get: description: Get MCP tools for a specific agent operationId: getMCPTools parameters: - in: path name: agent_id schema: type: string minLength: 1 example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD required: true description: Unique id of the agent to get MCP tools for. - in: query name: version schema: type: integer example: 1 required: false description: Optional version of the agent to use for this request. Default to latest version. - in: query name: mcp_id schema: type: string example: mcp-server-1 required: true description: The ID of the MCP server to get tools from. - in: query name: component_id schema: type: string example: component-123 required: false description: The ID of the component if the MCP server is configured under a component. responses: '200': description: Successfully retrieved MCP tools. content: application/json: schema: type: array items: $ref: '#/components/schemas/MCPToolDefinition' '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '422': $ref: '#/components/responses/UnprocessableContent' '500': $ref: '#/components/responses/InternalServerError' tags: - Get Mcp Tools components: responses: Unauthorized: description: Unauthorized content: application/json: schema: type: object properties: status: type: string enum: - error message: type: string example: API key is missing or invalid. BadRequest: description: Bad Request content: application/json: schema: type: object properties: status: type: string enum: - error message: type: string example: Invalid request format, please check API reference. UnprocessableContent: description: Unprocessable Content content: application/json: schema: type: object properties: status: type: string enum: - error message: type: string example: Cannot find requested asset under given api key. InternalServerError: description: Internal Server Error content: application/json: schema: type: object properties: status: type: string enum: - error message: type: string example: An unexpected server error occurred. schemas: MCPToolDefinition: type: object properties: name: type: string description: Name of the MCP tool. example: search_files description: type: string description: Description of what the MCP tool does. example: Search for files in the filesystem inputSchema: type: object description: JSON schema defining the input parameters for the tool. additionalProperties: true example: type: object properties: query: type: string description: Search query required: - query required: - name - description - inputSchema securitySchemes: api_key: type: http scheme: bearer bearerFormat: string description: Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"