> ## Documentation Index
> Fetch the complete documentation index at: https://docs.evolutionfoundation.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Discover Tools

> Discover tools from a custom MCP server



## OpenAPI

````yaml /api-reference/openapi/EvoAI-Processor-Service/custom-mcp-servers.yaml post /api/v1/custom-mcp-servers/discover-tools
openapi: 3.1.0
info:
  title: Evolution Foundation - AI Processor Service - Custom Mcp Servers
  description: AI processing, integrations and sessions
  version: 1.0.0
servers:
  - url: https://api.evoai.app
    description: Production server
  - url: http://localhost:3004
    description: Development server
    variables:
      port:
        default: '3004'
  - url: '{customUrl}'
    description: Custom server
    variables:
      customUrl:
        default: https://your-instance.com
        description: Enter your server URL
security: []
paths:
  /api/v1/custom-mcp-servers/discover-tools:
    post:
      summary: Create Discover Tools
      description: Discover tools from a custom MCP server
      operationId: create_discover_tools_api_v1_custom_mcp_servers_discover_tools_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomMCPDiscoverToolsCreate'
        required: true
      responses:
        '200':
          description: Tools discovered successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse_DiscoverToolsResponse_'
        '400':
          description: Bad Request (invalid data)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: BAD_REQUEST
                  message: Invalid input data
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/custom-mcp-servers/discover-tools
                  method: POST
        '401':
          description: Unauthorized (invalid or missing token)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: UNAUTHORIZED
                  message: Invalid or missing authentication token
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/custom-mcp-servers/discover-tools
                  method: POST
        '403':
          description: Forbidden (insufficient permissions)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: FORBIDDEN
                  message: Insufficient permissions to perform this action
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/custom-mcp-servers/discover-tools
                  method: POST
        '404':
          description: Not Found (resource not found)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: NOT_FOUND
                  message: Custom MCP server not found
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/custom-mcp-servers/discover-tools
                  method: POST
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error (server error)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: INTERNAL_SERVER_ERROR
                  message: An unexpected error occurred
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/custom-mcp-servers/discover-tools
                  method: POST
      security:
        - ApiAccessToken: []
components:
  schemas:
    CustomMCPDiscoverToolsCreate:
      properties:
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        headers:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Headers
      type: object
      title: CustomMCPDiscoverToolsCreate
      description: Schema for creating a custom MCP server with tool discovery
    SuccessResponse_DiscoverToolsResponse_:
      properties:
        success:
          type: boolean
          title: Success
          description: Success indicator
          default: true
        data:
          $ref: d96a9130-8855-48f3-a221-9059037a86d0
          description: Response payload
        meta:
          $ref: c4bd0f0a-49e4-4f5b-8e5c-973424001a04
          description: Metadata
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
          description: Optional success message
      type: object
      required:
        - data
        - meta
      title: SuccessResponse[DiscoverToolsResponse]
    ErrorResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Success indicator
          default: false
        error: 14ddee45-7a0d-49d8-8a99-0eb07eaba867
        meta:
          $ref: 82b73b2b-7fbb-4875-acef-e9ffb3b0e7e2
          description: Metadata
      type: object
      required:
        - error
        - meta
      title: ErrorResponse
      description: |-
        Standard error response schema matching error_response() return format.

        This schema matches the structure returned by error_response() function,
        which always uses ErrorInfo for the error field.
    HTTPValidationError:
      properties:
        detail:
          items: c09aa7ef-d16c-446d-ad64-12f7d6f49a74
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    ApiAccessToken:
      type: apiKey
      in: header
      name: api_access_token
      description: API Access Token (UUID) for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.